panel.ui.layout.widgetbox module#

A Material Paper with the disabled behavior of the classic WidgetBox.

class panel.ui.layout.widgetbox.WidgetBox(*objects, **params)[source]#

Bases: Paper

The WidgetBox groups widgets on a Material Paper surface and, like the classic WidgetBox, can disable all the widgets it contains.

Example:

>>> WidgetBox(TextInput(label='Name'), Button(label='Submit'), disabled=True)

Parameter Definitions


Parameters inherited from:

panel_material_ui.layout.base.PaperMixin: elevation, raised, square, variant

panel.layout.base.ListLike: objects

panel.viewable.Layoutable: align, aspect_ratio, css_classes, design, height, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width, width_policy, height_policy, sizing_mode, visible

panel.custom.ReactComponent: use_shadow_dom

panel_material_ui.base.MaterialComponent: loading, dark_theme, theme_config, sx

panel_material_ui.layout.base.MaterialListLike: scroll

panel_material_ui.layout.base.Paper: margin, direction

disabled = Boolean(default=False, label='Disabled')

Whether the widgets in the box are disabled.