bokeh.models.widgets.groups
¶
-
class
AbstractGroup
(**kwargs)¶ Bases:
bokeh.models.widgets.widget.Widget
Abstract base class for all kinds of groups.
AbstractGroup
is not generally useful to instantiate on its own.-
on_click
(handler)¶ Set up a handler for button check/radio box clicks including the selected indices.
Parameters: handler (func) – handler function to call when button is clicked. Returns: None
-
labels
¶ property type: labels:List(String)
List of text labels contained in this group.
-
-
class
ButtonGroup
(**kwargs)¶ Bases:
bokeh.models.widgets.groups.AbstractGroup
Abstract base class for groups with items rendered as buttons.
ButtonGroup
is not generally useful to instantiate on its own.-
type
¶ property type: type:Enum(‘default’, ‘primary’, ‘success’, ‘warning’, ‘danger’, ‘link’)
A style for the button, signifying it’s role.
-
-
class
CheckboxButtonGroup
(**kwargs)¶ Bases:
bokeh.models.widgets.groups.ButtonGroup
A group of check boxes rendered as toggle buttons.
-
active
¶ property type: active:List(Int)
The list of indices of selected check boxes.
-
-
class
CheckboxGroup
(**kwargs)¶ Bases:
bokeh.models.widgets.groups.Group
A group of check boxes.
-
active
¶ property type: active:List(Int)
The list of indices of selected check boxes.
-
-
class
Group
(**kwargs)¶ Bases:
bokeh.models.widgets.groups.AbstractGroup
Abstract base class for groups with items rendered as check/radio boxes.
-
inline
¶ property type: inline:Bool
Should items be arrange vertically (
False
) or horizontally in-line (True
).
-
-
class
RadioButtonGroup
(**kwargs)¶ Bases:
bokeh.models.widgets.groups.ButtonGroup
A group of radio boxes rendered as toggle buttons.
-
active
¶ property type: active:Int
The index of the selected radio box, or
None
if nothing is selected.
-
-
class
RadioGroup
(**kwargs)¶ Bases:
bokeh.models.widgets.groups.Group
A group of radio boxes.
-
active
¶ property type: active:Int
The index of the selected radio box, or
None
if nothing is selected.
-