ui.Textbox

A textbox that enables the user to input text information.

UsageReturns
ui.Textbox(placeholder, value, onChange, disabled, style)ui.Textbox
ArgumentTypeDetails
placeholderString, optional

The placeholder text to display when the textbox is empty. Defaults to none.

valueString, optional

The textbox's value. Defaults to none.

onChangeFunction, optional

The callback to fire when the text changes. The callback is passed the text currently in the textbox and the textbox widget.

disabledBoolean, optional

Whether the textbox 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!