shyft.dashboard.widgets.water_route_widget
Classes
|
Simple water route graph app with a single port to receive a list of hydro power system objects to visualize the graph based on the internal topology of the hydro power systems. |
- class shyft.dashboard.widgets.water_route_widget.WaterRouteWidget(water_route_graph: WaterRouteGraph, logger: Logger | None = None, padding: int | None = None, sizing_mode: str | None = None, widget_width: int = 300, widget_height: int = 70, height: int = 1024, aspect_factor: float = 1.4, auto_reload: bool = True)[source]
Bases:
Widget
Simple water route graph app with a single port to receive a list of hydro power system objects to visualize the graph based on the internal topology of the hydro power systems.
- __init__(water_route_graph: WaterRouteGraph, logger: Logger | None = None, padding: int | None = None, sizing_mode: str | None = None, widget_width: int = 300, widget_height: int = 70, height: int = 1024, aspect_factor: float = 1.4, auto_reload: bool = True) None [source]
Base class for all Widgets
- Parameters:
logger – Optional logger, e.g composable_logger_box
- 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’: []}