BinFilter type: bins#
- class lumen.filters.base.BinFilter(*, bins, empty_select, labels, multi, default, disabled, throttled, visible, field, label, schema, shared, sync_with_url, table, value, name)#
BinFilter is a special WidgetFilter that allows selecting from a set of bins.
The bins must be declared from a list of tuples declaring the lower- and upper-bound of each bin and an optional set of labels of the same length.
Parameters#
type: list[Any]
default: []
A list of bins expressed as length two tuples.
type: Any
default: None
The default value to use on the widget.
type: bool
default: False
Whether the filter should be disabled.
type: bool
default: True
Add an option to Select widgets to indicate no filtering.
type: list[Any]
default: None
A list of labels for each bin (optional).
type: bool
default: True
Whether to use a single-value or multi-value selection widget.
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.
type: bool
default: True
Whether the filter should be visible.
Methods#
- BinFilter.to_spec(context: Dict[str, Any] | None = None) Dict[str, Any] #
Exports the full specification to reconstruct this component.
- Return type:
Resolved and instantiated Component object