OpenWGA 7.11 - WebTML reference
WebTML tags » input<tml:input optgroupsitem ="itemname">
Purpose:
Create input optgroup options
Description:
The referenced item must be a list of map objects with properties "label" an "options".
"optgroupsitem" can be combined with "options" or "optionsitem". Standard options are rendered first in this case.
Examples:
<tml:script>
_optgroups = [
{
label: "languages",
options: [
"german|de",
"english|en"
]
},
// next optgroup ...
]
</tml:script>
<tml:input name="lang" options="1,2,3" optgroupsitem="_optgroups"/>
Result:
<select name="lang">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<optgroup label="languages">
<option value="de">german</option>
<option value="en">english</option>
</optgroup>
</select>