ui.Select

A printable select menu with a callback.

UsageReturns
ui.Select(items, placeholder, value, onChange, disabled, style)ui.Select
ArgumentTypeDetails
itemsList, optionalThe list of options to add to the select. Defaults to an empty array.
placeholderString, optionalThe placeholder shown when no value is selected. Defaults to "Select a value...".
valueString, optionalThe select's value. Defaults to null.
onChangeFunction, optionalThe callback to fire when an item is selected. The callback is passed the currently selected value and the select widget.
disabledBoolean, optionalWhether the select is disabled. Defaults to false.
styleObject, optionalAn object of allowed CSS styles with their values to be set for this widget. See style() documentation.