bokeh.models.widgets.panels

Various kinds of panel widgets.

class Panel(**kwargs)[source]

Bases: bokeh.models.widgets.widget.Widget

A single-widget container with title bar and controls.

child

property type: Instance ( LayoutDOM )

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.

JSON Prototype
{
  "child": null,
  "closable": false,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "747baf83-feea-4c82-927f-472085da7d9d",
  "js_callbacks": {},
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "title": "",
  "width": null
}
class Tabs(**kwargs)[source]

Bases: bokeh.models.widgets.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.

JSON Prototype
{
  "active": 0,
  "callback": null,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "136de12f-5328-438a-b4b9-ece4073b34b9",
  "js_callbacks": {},
  "name": null,
  "sizing_mode": "fixed",
  "tabs": [],
  "tags": [],
  "width": null
}