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 Docs

bokeh.models.widgets.dialogs

Various kinds of dialog and message box widgets.

class Dialog(**kwargs)

Bases: bokeh.models.widgets.widget.Widget

Simple dialog box with string message.

buttons

property type: buttons:List(Instance(Button))

A list of buttons to be placed on the bottom of the dialog.

buttons_box

property type: buttons_box:Instance(Box)

A Box with buttons to be used as dialog footer.

closable

property type: closable:Bool

Whether this dialog is closable or not.

content

property type: content:Either(String, Instance(Box))

Either a message to be displayed by this dialog or a Box to be used as dialog body.

title

property type: title:String

The title of the dialog widget.

visible

property type: visible:Bool

Whether this dialog is visible or not.

JSON Prototype
{
  "buttons": [],
  "buttons_box": null,
  "closable": true,
  "content": "",
  "disabled": false,
  "height": null,
  "id": "dfcb4fc7-a929-4fdb-9f97-0b5cfc6974b6",
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "title": "",
  "visible": false,
  "width": null
}