ToggleGroup#

This component is also available in the classic reference.

This class is a factory of ToggleGroup widgets.

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.widgets.select

This class is a factory of ToggleGroup widgets.

A ToggleGroup is a group of widgets which can be switched ‘on’ or ‘off’.

Two types of widgets are available through the widget_type argument : * 'button' (default) * 'box'

Two different behaviors are available through behavior argument: * ‘check’ (default) : boolean Any number of widgets can be selected. In this case value is a ‘list’ of objects. * ‘radio’ : boolean One and only one widget is switched on. In this case value is an ‘object’.

.. !! 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