panel.widgets.widget module#
- class panel.widgets.widget.fixed(value: Any, **kwargs: Any)[source]#
Bases:
Parameterized
A pseudo-widget whose value is fixed and never synced to the client.
Methods
Return the value for this widget which should be passed to interactive functions.
Parameter Definitions
description = String(default='', label='Description')
value = Parameter(allow_None=True, label='Value')
Any Python object
- class panel.widgets.widget.widget(*, name)[source]#
Bases:
ParameterizedFunction
Attempts to find a widget appropriate for a given value.
- Parameters:
- name: str
The name of the resulting widget.
- value: Any
The value to deduce a widget from.
- default: Any
The default value for the resulting widget.
- **params: Any
Additional keyword arguments to pass to the widget.
Methods
widget_from_iterable
(o, name)Make widgets from an iterable.
widget_from_single_value
(o, name)Make widgets from single values, which can be used as parameter defaults.
widget_from_tuple
(o, name, default)Make widgets from a tuple abbreviation.
- Returns:
- Widget
Parameter Definitions
- static widget_from_iterable(o, name)[source]#
Make widgets from an iterable. This should not be done for a string or tuple.