1HTMLDocument.addOption(3kaya)Kaya module referenceHTMLDocument.addOption(3kaya)
2
3
4

NAME

6       HTMLDocument::addOption - Adds a labelled checkbox to a form.
7

SYNOPSIS

9       ElementTree  addOption(  ElementTree parent, String iname, SelectOption
10       option )
11

ARGUMENTS

13       parent The parent element
14
15       iname The name of the  checkbox.  Remember  that  names  starting  with
16       "kaya_" may be used by the Kaya standard library and should not be used
17       directly by applications.
18
19       option The value and label of the checkbox, and whether it  is  checked
20       by default
21

DESCRIPTION

23       Adds  a  single  labelled  checkbox  to  a  form. Labelled controls are
24       wrapped in a division, and so the parent may be the form itself.
25
26
27    opt = SelectOption("Confirm action","1",false);
28    void(addOption(form,"confirm",opt));
29    /*
30    <div><input type='checkbox' name='confirm' value='1' id='Kay1'>
31      <label for='Kay1'>Confirm action</label></div>
32    */
33

AUTHORS

35       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
36       (kaya@kayalang.org). For further information see http://kayalang.org/
37

LICENSE

39       The  Kaya  standard  library  is free software; you can redistribute it
40       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
41       License  (version  2.1  or  any later version) as published by the Free
42       Software Foundation.
43
45       HTMLDocument.SelectOption (3kaya)
46       HTMLDocument.addLabelledInput (3kaya)
47       HTMLDocument.addLabelledSelect (3kaya)
48       HTMLDocument.addLabelledTextarea (3kaya)
49       HTMLDocument.addOptionList (3kaya)
50
51
52
53Kaya                             December 2010   HTMLDocument.addOption(3kaya)
Impressum