bokeh.models.widgets.inputs¶
Various kinds of input widgets and form controls.
-
class
bokeh.models.widgets.inputs.
AutocompleteInput
(**kwargs)¶ Bases:
bokeh.models.widgets.inputs.TextInput
Single-line input widget with auto-completion.
-
class
bokeh.models.widgets.inputs.
DatePicker
(**kwargs)¶ Bases:
bokeh.models.widgets.inputs.InputWidget
Calendar-based date picker widget.
-
class
bokeh.models.widgets.inputs.
InputWidget
(**kwargs)¶ Bases:
bokeh.models.widgets.widget.Widget
Abstract base class for input widgets.
Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
-
classmethod
coerce_value
(val)¶
-
classmethod
-
class
bokeh.models.widgets.inputs.
MultiSelect
(**kwargs)¶ Bases:
bokeh.models.widgets.inputs.InputWidget
Multi-select widget.
-
callback
¶ property type:
Instance
(Callback
)A callback to run in the browser whenever the current selection value changes.
-
options
¶ property type:
List
(Either
(String
,Tuple
(String
,String
) ) )Available selection options. Options may be provided either as a list of possible string values, or as a list of tuples, each of the form
(value, label)
. In the latter case, the visible widget text for each value will be corresponding given label.
-
-
class
bokeh.models.widgets.inputs.
PasswordInput
(**kwargs)¶ Bases:
bokeh.models.widgets.inputs.TextInput
Single-line password input widget. Note: Despite PasswordInput inheriting from TextInput the password cannot be inspected on the field
value
. Also, note that this field functionally just hides the input on the browser, transmiting safely a password as a callback, e.g., to the a bokeh server would require some secure connection.
-
class
bokeh.models.widgets.inputs.
Select
(**kwargs)¶ Bases:
bokeh.models.widgets.inputs.InputWidget
Single-select widget.
-
callback
¶ property type:
Instance
(Callback
)A callback to run in the browser whenever the current Select dropdown value changes.
-
options
¶ property type:
List
(Either
(String
,Tuple
(String
,String
) ) )Available selection options. Options may be provided either as a list of possible string values, or as a list of tuples, each of the form
(value, label)
. In the latter case, the visible widget text for each value will be corresponding given label.
-
-
class
bokeh.models.widgets.inputs.
TextInput
(**kwargs)¶ Bases:
bokeh.models.widgets.inputs.InputWidget
Single-line input widget.