SELECT - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki
<SELECT/> : FormField
The <SELECT/> widget creates a dropdown that can contain hardcoded OPTION
values. This allows the user to select from a list of values, this list can be searchable with typeahead=true
and can take custom values if inputenabled=true
too. The selection values can be hardcoded OPTION
`s (fig-a) or populated by a Datasource (fig-b)
- If populating the <SELECT/> from a Datasource using
data=
ensure to have exactly oneOPTION
child with bindings matching the data.
Name | Type | Default | Description | Req |
---|---|---|---|---|
data | string | null | The Datasource that populates the OPTION
|
|
width | int | null | The width of the select. The default is the size of the largest OPTION child |
|
addempty | bool | true | Adds an empty value at the start of the list provided from a Datasource |
A SELECT
populated with hardcoded OPTION
s
<FML>
<ROW center="true">
<SELECT id="pineappleonpizza">
<OPTION value="true" label="Yes"/>
<OPTION value="false" label="No"/>
</SELECT>
</ROW>
</FML>