ElementTree addLabelledSelect(ElementTree block, String labeltext, String name, Int ssize, [Pair<String, [SelectOption]> ] optgroups, Bool lazy=false)
Arguments
parent: The parent elementlabeltext: The label for the selectorname: 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 fromlazy: This parameter is optional and defaults tofalse. If it is explicitly set totruethen the selector will be generated lazily.
Usage
Adds a labelled selection box to a form. The selector itself is identical to that produced by addSelectElement or addLazySelect, depending on the value of the lazy parameter. Generally, it is more convenient to use this function to label selectors, than to create them individally.