ui.Select

A printable select menu with a callback.

UsageReturns
ui.Select(items, placeholder, value, onChange, disabled, style)ui.Select
ArgumentTypeDetails
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 whitelisted CSS styles with their values to be set for this widget. See style() documentation.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!