bokeh.models.widgets.inputs
¶Various kinds of input widgets and form controls.
AutocompleteInput
(**kwargs)¶Bases: bokeh.models.widgets.inputs.TextInput
Single-line input widget with auto-completion.
[
{
"attributes": {
"callback": null,
"completions": [],
"disabled": false,
"doc": null,
"id": "c3029ccd-cb77-44d6-b685-b2cde28cc672",
"name": null,
"tags": [],
"title": null,
"value": null
},
"id": "c3029ccd-cb77-44d6-b685-b2cde28cc672",
"type": "AutocompleteInput"
}
]
DatePicker
(**kwargs)¶Bases: bokeh.models.widgets.inputs.InputWidget
Calendar-based date picker widget.
[
{
"attributes": {
"callback": null,
"disabled": false,
"doc": null,
"id": "cba25e30-9219-4d16-93ea-0e5e9fdd8cbb",
"max_date": null,
"min_date": null,
"name": null,
"tags": [],
"title": null,
"value": 1443139200000.0
},
"id": "cba25e30-9219-4d16-93ea-0e5e9fdd8cbb",
"type": "DatePicker"
}
]
DateRangeSlider
(**kwargs)¶Bases: bokeh.models.widgets.inputs.InputWidget
Slider-based date range selection widget.
range
¶property type: Tuple
(RelativeDelta
, RelativeDelta
)
[TDB]
step
¶property type: RelativeDelta
The step between consecutive dates.
[
{
"attributes": {
"arrows": true,
"bounds": null,
"callback": null,
"disabled": false,
"doc": null,
"enabled": true,
"id": "806e1c56-e7bc-4228-982a-6636d9fe7cac",
"name": null,
"range": null,
"step": {},
"tags": [],
"title": null,
"value": null,
"value_labels": "show",
"wheel_mode": null
},
"id": "806e1c56-e7bc-4228-982a-6636d9fe7cac",
"type": "DateRangeSlider"
}
]
InputWidget
(**kwargs)¶Bases: bokeh.models.widget.Widget
Abstract base class for input widgets. InputWidget` is not generally useful to instantiate on its own.
coerce_value
(val)¶create
(*args, **kwargs)¶Only called the first time we make an object, whereas __init__ is called every time it’s loaded
[
{
"attributes": {
"callback": null,
"disabled": false,
"doc": null,
"id": "8f3197de-6f6e-48b3-99c0-2edbc8ec59e6",
"name": null,
"tags": [],
"title": null
},
"id": "8f3197de-6f6e-48b3-99c0-2edbc8ec59e6",
"type": "InputWidget"
}
]
MultiSelect
(**kwargs)¶Bases: bokeh.models.widgets.inputs.Select
Multi-select widget.
create
(*args, **kwargs)¶[
{
"attributes": {
"callback": null,
"disabled": false,
"doc": null,
"id": "c3ecef76-e941-4c11-98ed-e037ac44d7aa",
"name": null,
"options": [],
"tags": [],
"title": null,
"value": []
},
"id": "c3ecef76-e941-4c11-98ed-e037ac44d7aa",
"type": "MultiSelect"
}
]
Select
(**kwargs)¶Bases: bokeh.models.widgets.inputs.InputWidget
Single-select widget.
create
(*args, **kwargs)¶[
{
"attributes": {
"callback": null,
"disabled": false,
"doc": null,
"id": "e6501c8d-a149-41ed-824d-1701813cf2ea",
"name": null,
"options": [],
"tags": [],
"title": null,
"value": null
},
"id": "e6501c8d-a149-41ed-824d-1701813cf2ea",
"type": "Select"
}
]
Slider
(**kwargs)¶Bases: bokeh.models.widgets.inputs.InputWidget
Slider-based number selection widget.
[
{
"attributes": {
"callback": null,
"disabled": false,
"doc": null,
"end": null,
"id": "cab8e209-8572-403a-ac73-2442662f87d1",
"name": null,
"orientation": "horizontal",
"start": null,
"step": null,
"tags": [],
"title": null,
"value": null
},
"id": "cab8e209-8572-403a-ac73-2442662f87d1",
"type": "Slider"
}
]
TextInput
(**kwargs)¶Bases: bokeh.models.widgets.inputs.InputWidget
Single-line input widget.
[
{
"attributes": {
"callback": null,
"disabled": false,
"doc": null,
"id": "da2e1596-a6e4-420d-a204-73dbbe272613",
"name": null,
"tags": [],
"title": null,
"value": null
},
"id": "da2e1596-a6e4-420d-a204-73dbbe272613",
"type": "TextInput"
}
]