bokeh.models.widgets.inputs¶
Various kinds of input widgets and form controls.
-
class
AutocompleteInput
(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.TextInput
Single-line input widget with auto-completion.
-
class
DatePicker
(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.InputWidget
Calendar-based date picker widget.
-
class
DateRangeSlider
(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.InputWidget
Slider-based date range selection widget.
-
callback
¶ property type:
Instance
(Callback
)A callback to run in the browser whenever either slider’s value changes.
-
range
¶ property type:
Tuple
(RelativeDelta
(Enum
( Enumeration(years, months, days, hours, minutes, seconds, microseconds) ),Int
),RelativeDelta
(Enum
( Enumeration(years, months, days, hours, minutes, seconds, microseconds) ),Int
) )[TDB]
-
step
¶ property type:
RelativeDelta
(Enum
( Enumeration(years, months, days, hours, minutes, seconds, microseconds) ),Int
)The step between consecutive dates.
-
-
class
InputWidget
(**kwargs)[source]¶ 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.
-
class
MultiSelect
(**kwargs)[source]¶ 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
RangeSlider
(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.InputWidget
Range-slider based range selection widget
-
callback
¶ property type:
Instance
(Callback
)A callback to run in the browser whenever the current Slider value changes.
-
callback_policy
¶ property type:
Enum
(SliderCallbackPolicy
)When the callback is initiated. This parameter can take on only one of three options:
- “continuous”: the callback will be executed immediately for each movement of the slider
- “throttle”: the callback will be executed at most every
callback_throttle
milliseconds. - “mouseup”: the callback will be executed only once when the slider is released.
The “mouseup” policy is intended for scenarios in which the callback is expensive in time.
-
callback_throttle
¶ property type:
Float
Number of microseconds to pause between callback calls as the slider is moved.
-
-
class
Select
(**kwargs)[source]¶ 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
Slider
(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.InputWidget
Slider-based number selection widget.
-
callback
¶ property type:
Instance
(Callback
)A callback to run in the browser whenever the current Slider value changes.
-
callback_policy
¶ property type:
Enum
(SliderCallbackPolicy
)When the callback is initiated. This parameter can take on only one of three options:
- “continuous”: the callback will be executed immediately for each movement of the slider
- “throttle”: the callback will be executed at most every
callback_throttle
milliseconds. - “mouseup”: the callback will be executed only once when the slider is released.
The “mouseup” policy is intended for scenarios in which the callback is expensive in time.
-
callback_throttle
¶ property type:
Float
Number of microseconds to pause between callback calls as the slider is moved.
-