A printable select menu with a callback.

ui.Select(items, placeholder, value, onChange, disabled, style)ui.Select
itemsList, optional

The list of options to add to the select. Defaults to an empty array.

placeholderString, optional

The placeholder shown when no value is selected. Defaults to "Select a value...".

valueString, optional

The select's value. Defaults to null.

onChangeFunction, optional

The callback to fire when an item is selected. The callback is passed the currently selected value and the select widget.

disabledBoolean, optional

Whether the select is disabled. Defaults to false.

styleObject, optional

An object of allowed CSS styles with their values to be set for this widget. See style() documentation.