ui.Textbox

A textbox that enables the user to input text information.

UsageReturns
ui.Textbox(placeholder, value, onChange, disabled, style)ui.Textbox
ArgumentTypeDetails
placeholderString, optionalThe placeholder text to display when the textbox is empty. Defaults to none.
valueString, optionalThe textbox's value. Defaults to none.
onChangeFunction, optionalThe callback to fire when the text changes. The callback is passed the text currently in the textbox and the textbox widget.
disabledBoolean, optionalWhether the textbox is disabled. Defaults to false.
styleObject, optionalAn object of allowed CSS styles with their values to be set for this widget. See style() documentation.