BooleanStatus#
The BooleanStatus is a boolean indicator providing a visual representation of a boolean status as filled or non-filled circle.
Use pn.ui.BooleanStatus to create this component.
API#
.. py:class:: BooleanStatus(*, color, throttle, disabled, loading, align, aspect_ratio, css_classes, design, height, height_policy, margin, max_height, max_width, min_height, min_width, sizing_mode, styles, stylesheets, tags, visible, width, width_policy, label, value, name) :module: panel.widgets.indicators
The BooleanStatus is a boolean indicator providing a visual
representation of a boolean status as filled or non-filled circle.
If the value is set to True the indicator will be filled while
setting it to False will cause it to be non-filled.
Reference: https://panel.holoviz.org/reference/indicators/BooleanStatus.html
:Example:
BooleanStatus(value=True, color=’primary’, width=100, height=100)
.. !! processed by numpydoc !!
Parameter Definitions
Parameters inherited from:
:class:`panel.widgets.base.WidgetBase`: label
:class:`panel.viewable.Layoutable`: align, aspect_ratio, css_classes, design, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width_policy, height_policy, visible
:class:`panel.viewable.Viewable`: loading
:class:`panel.widgets.base.Widget`: margin, disabled
:class:`panel.widgets.indicators.Indicator`: sizing_mode
:class:`panel.widgets.indicators.BooleanIndicator`: throttle
value = Boolean(default=False, label='Value')
Whether the indicator is active or not.
height = Integer(allow_None=True, bounds=(0, None), default=20, inclusive_bounds=(True, True), label='Height')
height of the circle.
width = Integer(allow_None=True, bounds=(0, None), default=20, inclusive_bounds=(True, True), label='Width')
Width of the circle.
color = Selector(default='dark', label='Color', names={}, objects=['primary', 'secondary', 'success', 'info', 'danger', 'warning', 'light', 'dark'])
The color of the circle, one of 'primary', 'secondary', 'success', 'info', 'danger',
'warning', 'light', 'dark'