bokeh.models.widgets.inputs¶
Various kinds of input widgets and form controls.
-
class
AutocompleteInput(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.TextInputSingle-line input widget with auto-completion.
-
class
DatePicker(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.InputWidgetCalendar-based date picker widget.
-
class
DateRangeSlider(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.InputWidgetSlider-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.WidgetAbstract 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.InputWidgetMulti-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.InputWidgetRange-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_throttlemilliseconds. - “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:
FloatNumber of microseconds to pause between callback calls as the slider is moved.
-
-
class
Select(**kwargs)[source]¶ Bases:
bokeh.models.widgets.inputs.InputWidgetSingle-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.InputWidgetSlider-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_throttlemilliseconds. - “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:
FloatNumber of microseconds to pause between callback calls as the slider is moved.
-