Stay organized with collections Save and categorize content based on your preferences.

A printable select menu with a callback.

ui.Select(items, placeholder, value, onChange, disabled, style)ui.Select
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.