bokeh.models.widgets.groups — Anaconda Enterprise 4.4 documentation

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": "93a42c27-c3dc-43c8-8e6b-ebb5f69d705e",
      "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": "198a5882-fde7-4481-83ae-748e1ff6107b",
      "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": "be5f0b6a-1860-4653-ac32-52844e2d0b08",
      "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": "4701b232-d3d1-4431-aa8b-1d1d78236903",
      "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": "43f714cd-31f9-448e-b752-dbf71aac18ac",
      "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": "1039770a-7a31-4082-a69d-a5abb18cea29",
      "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": "d3292132-9583-4229-ae48-600b90a1db22",
      "inline": false,
      "js_event_callbacks": {},
      "js_property_callbacks": {},
      "labels": [],
      "name": null,
      "sizing_mode": "fixed",
      "subscribed_events": [],
      "tags": [],
      "width": null
    }