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.markups — Bokeh 0.12.5 documentation

Source code for bokeh.models.widgets.markups

''' Various kinds of markup (static content) widgets.

'''
from __future__ import absolute_import

from ...core.has_props import abstract
from ...core.properties import Bool, String

from .widget import Widget

@abstract
[docs]class Markup(Widget): ''' Base class for Bokeh models that represent HTML markup elements. Markups include e.g., ``<div>``, ``<p>``, and ``<pre>``. ''' text = String(default="", help=""" The contents of the widget. """)
[docs]class Paragraph(Markup): ''' A block (paragraph) of text. This Bokeh model corresponds to an HTML ``<p>`` element. ''' __example__ = "sphinx/source/docs/user_guide/examples/interaction_paragraph.py"
[docs]class Div(Markup): ''' A block (div) of text. This Bokeh model corresponds to an HTML ``<div>`` element. ''' __example__ = "sphinx/source/docs/user_guide/examples/interaction_div.py" render_as_text = Bool(False, help=""" Whether the contents should be rendered as raw text or as interpreted HTML. The default value is ``False``, meaning contents are rendered as HTML. """)
[docs]class PreText(Paragraph): ''' A block (paragraph) of pre-formatted text. This Bokeh model corresponds to an HTML ``<pre>`` element. ''' __example__ = "sphinx/source/docs/user_guide/examples/interaction_pretext.py"