[Control] selectField
Part of: mobl::ui::generic
Arguments:
value : Stringthe variable to bind the control tooptions : [(String, String)]array of tuples where the first represents a value, and the second a human-friendly description (to appear in the user interface).onchange : Callbackevent triggered when the value of the this control changes.style : Style = selectFieldStylestyle to apply to controloptionStyle : Style = nullstyle to apply to each option
A drop-down select box.
Example:
var language = "english"
group {
item { selectField(language, [("english", "English"),
("dutch", "Dutch")]) }
}
mobl/ui/generic/selectfield.txt · Last modified: 2013/10/01 02:29 (external edit)
