SYNOPSISElementTree addLazySelect( ElementTree block, String name, Int ssize, [Pair<String, [SelectOption]> ] optgroups )
parent The parent element
name The name of the input. Remember that names starting with "kaya_" may be used by the Kaya standard library and should not be used directly by applications.
ssize The size of the select element. If this is zero, the select element will only allow one option to be selected at any one time. If this is one or more, the select element will allow multiple options to be selected, and suggest to the browser that this many options be displayed simultaneously.
optgroups The options to select from
Adds a lazy selection box to a form. The end result after conversion to a String is identical to that produced by HTMLDocument.addSelectElement(3kaya) , but the memory usage is lower. The disadvantage, however, is that Webapp.autoFill(3kaya) cannot be used to automatically complete forms containing lazy elements such as this one.
AUTHORSKaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/
LICENSEThe Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.