icons#
Various kinds of icons to be used with Button widgets. See Button in the user guide for more information.
- class BuiltinIcon(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Built-in icons included with BokehJS.
- color#
Color to use for the icon.
Acceptable values are:
any of the named CSS colors, e.g
'green','indigo'RGB(A) hex strings, e.g.,
'#FF0000','#44444444'CSS4 color strings, e.g.,
'rgba(255, 0, 127, 0.6)','rgb(0 127 0 / 1.0)', or'hsl(60deg 100% 50% / 1.0)'a 3-tuple of integers (r, g, b) between 0 and 255
a 4-tuple of (r, g, b, a) where r, g, b are integers between 0 and 255, and a is between 0 and 1
a 32-bit unsigned integer using the 0xRRGGBBAA byte order pattern
- icon_name#
The name of a built-in icon to use. Currently, the following icon names are supported:
"help","question-mark","settings","x"
- class Icon(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
An abstract base class for icon elements.
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.
- size#
The size of the icon. This can be either a number of pixels, or a CSS length string (see https://developer.mozilla.org/en-US/docs/Web/CSS/length).
- class SVGIcon(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
SVG icons with inline definitions.
- svg#
The SVG definition of an icon.
- class TablerIcon(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Icons from an external icon provider (https://tabler-icons.io/).
Note
This icon set is MIT licensed (see tabler/tabler-icons).
Note
External icons are loaded from third-party servers and may not be available immediately (e.g. due to slow internet connection) or not available at all. It isn’t possible to create a self-contained bundles with the use of
inlineresources. To circumvent this, one useSVGIcon, by copying the SVG contents of an icon from Tabler’s web site.- icon_name#
//tabler-icons.io/ for the list of names.
- Type:
The name of the icon. See https