This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

bokeh.models.widgets.widget — Bokeh 1.0.3 documentation

bokeh.models.widgets.widget

Provide a base class for all Bokeh widget models.

In addition to different kinds of plots, various kinds of UI controls (e.g. sliders, buttons, inputs, etc.) can be included in Bokeh documents. These widgets can be used in conjunction with CustomJS callbacks that execute in the browser, or with python callbacks that execute on a Bokeh server.

class Widget(**kwargs)[source]

Bases: bokeh.models.layouts.LayoutDOM

A base class for all interactive widget types.

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
{
  "css_classes": [],
  "disabled": false,
  "height": null,
  "id": "32317",
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}