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)

Restrictions:

  • If populating the <SELECT/> from a Datasource using data= ensure to have exactly one OPTION child with bindings matching the data.

Attributes

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

Examples

(fig. a)

A SELECT populated with hardcoded OPTIONs

<FML>
    <ROW center="true">
        <SELECT id="pineappleonpizza">
            <OPTION value="true" label="Yes"/>
            <OPTION value="false" label="No"/>
        </SELECT>
	</ROW>
</FML>

logo See it in Action

Other Widgets You May Find Useful:

⚠️ **GitHub.com Fallback** ⚠️