bokeh.models.widgets.panels

Various kinds of panel widgets.

class Panel(**kwargs)

Bases: bokeh.models.widgets.widget.Widget

A single-widget container with title bar and controls.

child

property type: child:Instance(LayoutDOM)

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

closable

property type: closable:Bool

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

title

property type: title:String

An optional text title of the panel.

JSON Prototype
{
  "child": null,
  "closable": false,
  "disabled": false,
  "height": null,
  "id": "910b04de-0fd6-45dc-9e57-e4e7065ea294",
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "title": "",
  "width": null
}
class Tabs(**kwargs)

Bases: bokeh.models.widgets.widget.Widget

A panel widget with navigation tabs.

active

property type: active:Int

The index of the active tab.

callback

property type: callback:Instance(Callback)

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

tabs

property type: tabs:List(Instance(Panel))

The list of child panel widgets.

JSON Prototype
{
  "active": 0,
  "callback": null,
  "disabled": false,
  "height": null,
  "id": "6cdd46f6-8f6d-4f2c-8d3f-bae445b0cd73",
  "name": null,
  "sizing_mode": "fixed",
  "tabs": [],
  "tags": [],
  "width": null
}