bokeh.models.widgets.panels

Various kinds of panel widgets.

class Panel(**kwargs)

Bases: bokeh.models.widget.Widget

A single-widget container with title bar and controls.

child

property type: Instance(Widget)

The child widget. If you need more children, use a layout widget, e.g. HBox or VBox.

closable

property type: Bool

Whether this panel is closeable or not. If True, an “x” button will appear.

title

property type: String

An optional text title of the panel.

[
  {
    "attributes": {
      "child": null,
      "closable": false,
      "disabled": false,
      "doc": null,
      "id": "da40edb9-86d7-4b1f-85d7-cf32cc89cccf",
      "name": null,
      "tags": [],
      "title": null
    },
    "id": "da40edb9-86d7-4b1f-85d7-cf32cc89cccf",
    "type": "Panel"
  }
]
class Tabs(**kwargs)

Bases: bokeh.models.widget.Widget

A panel widget with navigation tabs.

active

property type: Int

The index of the active tab.

callback

property type: Instance(Callback)

A callback to run in the browser whenever the button is activated.

tabs

property type: List(Instance(Panel))

The list of child panel widgets.

[
  {
    "attributes": {
      "active": 0,
      "callback": null,
      "disabled": false,
      "doc": null,
      "id": "70c7348b-db3d-4d11-ac94-7aaceacf0a6e",
      "name": null,
      "tabs": [],
      "tags": []
    },
    "id": "70c7348b-db3d-4d11-ac94-7aaceacf0a6e",
    "type": "Tabs"
  }
]