shyft.dashboard.widgets.sliders
Classes
|
|
|
|
|
|
|
- class shyft.dashboard.widgets.sliders.SliderData(start, end, step, value, callback)[source]
Bases:
NamedTuple
- start: int
Alias for field number 0
- end: int
Alias for field number 1
- step: int
Alias for field number 2
- value: int
Alias for field number 3
- callback: bool
Alias for field number 4
- class shyft.dashboard.widgets.sliders.RangeSliderData(start, end, step, range, callback)[source]
Bases:
NamedTuple
- start: int
Alias for field number 0
- end: int
Alias for field number 1
- step: int
Alias for field number 2
- range: Tuple[float, float]
Alias for field number 3
- callback: bool
Alias for field number 4
- class shyft.dashboard.widgets.sliders.SliderSelect(start: int, step: int, end: int, width: int = 210, height: int = 50, title: str = 'slider', padding: int | None = None, sizing_mode: str | None = None, logger: LoggerBox | None = None, **kwargs)[source]
Bases:
Widget
- __init__(start: int, step: int, end: int, width: int = 210, height: int = 50, title: str = 'slider', padding: int | None = None, sizing_mode: str | None = None, logger: LoggerBox | None = None, **kwargs) None [source]
A slider widget to select a value between two values and send it onward via a port.
- property layout: LayoutDOM
- property layout_components: Dict[str, List[Any]]
Property to return all layout.dom components of an visualisation app such that they can be arranged by the parent layout obj as desired.
- Returns:
layout_components as
- Return type:
{‘widgets’: [], ‘figures’: []}
- class shyft.dashboard.widgets.sliders.RangeSliderSelect(start: int, step: int, end: int, width: int = 210, height: int = 50, title: str = 'slider', value: Tuple[int, int] | None = None, padding: int | None = None, sizing_mode: str | None = None, logger: LoggerBox | None = None, show_value: bool = False, **kwargs)[source]
Bases:
Widget
- __init__(start: int, step: int, end: int, width: int = 210, height: int = 50, title: str = 'slider', value: Tuple[int, int] | None = None, padding: int | None = None, sizing_mode: str | None = None, logger: LoggerBox | None = None, show_value: bool = False, **kwargs) None [source]
A slider widget to select a range of values between two values and send it onward via a port.
- property layout: LayoutDOM
- property layout_components: Dict[str, List[Any]]
Property to return all layout.dom components of an visualisation app such that they can be arranged by the parent layout obj as desired.
- Returns:
layout_components as
- Return type:
{‘widgets’: [], ‘figures’: []}