DropDownSelection

A drop-down list where the user must select one of the given options. Like <select> in HTML.

class DropDownSelection : ComboboxBase {}

Inherited Members

From ComboboxBase

options
string[] options [@property getter]

Returns the current list of options in the selection.

addOption
void addOption(string s)

Adds an option to the end of options array.

getSelection
int getSelection()

Gets the current selection as an index into the options array. Returns -1 if nothing is selected.

getSelectionString
string getSelectionString()

Returns the current selection as a string.

setSelection
int setSelection(int idx)
int setSelection(string s)

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.

SelectionChangedEvent
class SelectionChangedEvent

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.

Suggestion Box / Bug Report