Creates a drop down selection, optionally passing its initial list of options.
Returns the current list of options in the selection.
Replaces the list of options in the box. Note that calling this will also reset the selection.
Adds an option to the end of options array.
Gets the current selection as an index into the options array. Returns -1 if nothing is selected.
Returns the current selection as a string.
Sets the current selection to an index in the options array, or to the given option if present. Please note that the string version may do a linear lookup.
This event is fired when the selection changes. Note it inherits from ChangeEvent!string, meaning you can use that as well, and it also fills in Event.intValue.
A drop-down list where the user must select one of the given options. Like <select> in HTML.
The current selection is given as a string or an index. It emits a SelectionChangedEvent when it changes.