Anaconda Enterprise: Documentation

# bokeh.models.widgets.groups

class `bokeh.models.widgets.groups.``AbstractGroup`(**kwargs)

  Bases: `bokeh.models.widgets.widget.Widget`

  Abstract base class for all kinds of groups.

  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.

  `callback`

    property type: `Instance` ( `Callback` )

    A callback to run in the browser whenever a button group is manipulated.

  `labels`

    property type: `List` ( `String` )

    List of text labels contained in this group.

  `js_on_click`(handler)

    Set up a handler for button check/radio box clicks including the selected indices.

  `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

JSON Prototype

    {
      "callback": null,
      "css_classes": null,
      "disabled": false,
      "height": null,
      "id": "8ec1772b-137f-4575-926e-d2a286e28ac8",
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "labels": [],
      "name": null,
      "sizing_mode": "fixed",
      "subscribed_events": [],
      "tags": [],
      "width": null
    }

class `bokeh.models.widgets.groups.``ButtonGroup`(**kwargs)

  Bases: `bokeh.models.widgets.groups.AbstractGroup`, `bokeh.models.widgets.buttons.ButtonLike`

  Abstract base class for groups with items rendered as buttons.

  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.

JSON Prototype

    {
      "button_type": "default",
      "callback": null,
      "css_classes": null,
      "disabled": false,
      "height": null,
      "id": "e00be3ee-7549-4963-b587-4926df98e1fa",
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "labels": [],
      "name": null,
      "sizing_mode": "fixed",
      "subscribed_events": [],
      "tags": [],
      "width": null
    }

class `bokeh.models.widgets.groups.``CheckboxButtonGroup`(**kwargs)

  Bases: `bokeh.models.widgets.groups.ButtonGroup`

  A group of check boxes rendered as toggle buttons.

  `active`

    property type: `List` ( `Int` )

    The list of indices of selected check boxes.

JSON Prototype

    {
      "active": [],
      "button_type": "default",
      "callback": null,
      "css_classes": null,
      "disabled": false,
      "height": null,
      "id": "b6d7fd8e-6bed-41db-aecf-494c430a17c4",
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "labels": [],
      "name": null,
      "sizing_mode": "fixed",
      "subscribed_events": [],
      "tags": [],
      "width": null
    }

class `bokeh.models.widgets.groups.``CheckboxGroup`(**kwargs)

  Bases: `bokeh.models.widgets.groups.Group`

  A group of check boxes.

  `active`

    property type: `List` ( `Int` )

    The list of indices of selected check boxes.

JSON Prototype

    {
      "active": [],
      "callback": null,
      "css_classes": null,
      "disabled": false,
      "height": null,
      "id": "0c6f7aa6-ec1b-4332-84a1-53c7442c8c5b",
      "inline": false,
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "labels": [],
      "name": null,
      "sizing_mode": "fixed",
      "subscribed_events": [],
      "tags": [],
      "width": null
    }

class `bokeh.models.widgets.groups.``Group`(**kwargs)

  Bases: `bokeh.models.widgets.groups.AbstractGroup`

  Abstract base class for groups with items rendered as check/radio boxes.

  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.

  `inline`

    property type: `Bool`

    Should items be arrange vertically (`False`) or horizontally in-line (`True`).

JSON Prototype

    {
      "callback": null,
      "css_classes": null,
      "disabled": false,
      "height": null,
      "id": "47fd3eba-972f-4b82-be68-ed994d3f62c4",
      "inline": false,
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "labels": [],
      "name": null,
      "sizing_mode": "fixed",
      "subscribed_events": [],
      "tags": [],
      "width": null
    }

class `bokeh.models.widgets.groups.``RadioButtonGroup`(**kwargs)

  Bases: `bokeh.models.widgets.groups.ButtonGroup`

  A group of radio boxes rendered as toggle buttons.

  `active`

    property type: `Int`

    The index of the selected radio box, or `None` if nothing is selected.

JSON Prototype

    {
      "active": null,
      "button_type": "default",
      "callback": null,
      "css_classes": null,
      "disabled": false,
      "height": null,
      "id": "bad66378-e6cd-46af-a546-dd0ef56240b1",
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "labels": [],
      "name": null,
      "sizing_mode": "fixed",
      "subscribed_events": [],
      "tags": [],
      "width": null
    }

class `bokeh.models.widgets.groups.``RadioGroup`(**kwargs)

  Bases: `bokeh.models.widgets.groups.Group`

  A group of radio boxes.

  `active`

    property type: `Int`

    The index of the selected radio box, or `None` if nothing is selected.

JSON Prototype

    {
      "active": null,
      "callback": null,
      "css_classes": null,
      "disabled": false,
      "height": null,
      "id": "01eaa900-7ba0-410d-8989-fbfdc6caf0ad",
      "inline": false,
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "labels": [],
      "name": null,
      "sizing_mode": "fixed",
      "subscribed_events": [],
      "tags": [],
      "width": null
    }