bokeh.models.widgets.dialogs

Various kinds of dialog and message box widgets.

class Dialog(**kwargs)

Bases: bokeh.models.widget.Widget

Simple dialog box with string message.

buttons

property type: List(Instance(Button))

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

buttons_box

property type: Instance(BaseBox)

A BaseBox with buttons to be used as dialog footer.

closable

property type: Bool

Whether this dialog is closable or not.

content

property type: Either(String, Instance(BaseBox))

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

title

property type: String

The title of the dialog widget.

visible

property type: Bool

Whether this dialog is visible or not.

[
  {
    "attributes": {
      "buttons": [],
      "buttons_box": null,
      "closable": true,
      "content": null,
      "disabled": false,
      "doc": null,
      "id": "6107c23e-4ed9-4ae7-ade7-4ae71ab7ff11",
      "name": null,
      "tags": [],
      "title": null,
      "visible": false
    },
    "id": "6107c23e-4ed9-4ae7-ade7-4ae71ab7ff11",
    "type": "Dialog"
  }
]