ToggleGroup#
This component replaces a classic Panel component
pn.ui.ToggleGroup supersedes pn.widgets.ToggleGroup, which remains available and is documented in the classic ToggleGroup reference.
A factory of Material toggle groups, a group of widgets which can be switched on or off.
Use pn.ui.ToggleGroup to create this component.
API#
.. py:class:: ToggleGroup(*, options, 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_material_ui.widgets.select
A factory of Material toggle groups, a group of widgets which can be switched on or off.
The widget_type selects between 'button' (default) and 'box' widgets
and the behavior between 'check' (default), where any number of
options may be selected and the value is a list, and 'radio', where
exactly one option is selected.
:References:
https://panel.holoviz.org/reference/widgets/ToggleGroup.html
:Example:
ToggleGroup( … label=’Fruits’, options=[‘Apple’, ‘Banana’, ‘Pear’], behavior=’radio’ … )
.. !! 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, sizing_mode, visible
:class:`panel.viewable.Viewable`: loading
:class:`panel.widgets.base.Widget`: height, margin, width, disabled
:class:`panel.widgets.select.SelectBase`: options
:class:`panel.widgets.select.SingleSelectBase`: value