Widget type: widget#
- class lumen.variables.base.Widget(*, kind, throttled, default, label, materialize, required, secure, value, name)#
Widget variables dynamically reflect the current widget value.
Parameters#
kind required
type: str
default: None
The type of widget to instantiate.
throttled
type: bool
default: True
If the widget has a value_throttled parameter use that instead,ensuring that no intermediate events are generated, e.g. whendragging a slider.
Methods#
- Widget.as_materialized() Constant #
If the variable is to be materialized by the builder this implements the conversion from a variable that references some external value to a materialized value.
- Widget.to_spec(context=None)#
Exports the full specification to reconstruct this component.
- Return type:
Resolved and instantiated Component object