shyft.dashboard.widgets.date_selector

Classes

DateSelector([title, width, height, ...])

class shyft.dashboard.widgets.date_selector.DateSelector(title: str = '', width: int = 200, height: int | None = None, padding: int | None = None, sizing_mode: str | None = None, max_date: int | None = None, min_date: int | None = None, time_zone: str | None = 'Europe/Oslo', logger: LoggerBox | None = None)[source]

Bases: Widget

__init__(title: str = '', width: int = 200, height: int | None = None, padding: int | None = None, sizing_mode: str | None = None, max_date: int | None = None, min_date: int | None = None, time_zone: str | None = 'Europe/Oslo', logger: LoggerBox | None = None) 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:
{‘widgets’: [],

’figures’: []}

Return type:

dict

convert_str_to_date(date_str: str) int | None[source]
convert_date_to_str(date: int | None) str | None[source]