SiWeatherWidgetData Type documentation¶
TypeScript declaration¶
Composite payload accepted by the body component. Granular widget/body inputs ( metrics ? : import type { SiWeatherWidgetData } from '@siemens/element-ng/dashboard';current, metrics, forecast) take precedence when set.
readonly SiWeatherWidgetMetric[] ¶
Types Documentation¶
Today block of the weather widget. Translatable condition label, e.g. Weather illustration. A string is shorthand for illustration ? : Optional alt text used when illustration is given as a string. Today's maximum temperature, pre-formatted by the caller. maxTemperature ? : Today's minimum temperature, pre-formatted by the caller. minTemperature ? : Current temperature, pre-formatted by the caller (e.g. temperature : import type { SiWeatherWidgetCurrent } from '@siemens/element-ng/dashboard';
"Sunny".{ src }.string | SiWeatherIcon ¶ string | number ¶ string | number ¶ "26°" or 26).string | number ¶
Forecast block of the weather widget. The vertical layout supports up to five optional columns in addition to the mandatory rightmost min/max temperature column. The horizontal layout ignores columns and renders only day label, illustration and min/max temperature per column. A horizontal forecast should provide at least three days for a visually balanced layout. Optional extra columns (vertical layout only). At most five are rendered. columns ? : The forecast days in display order. days : import type { SiWeatherWidgetForecast } from '@siemens/element-ng/dashboard';
readonly SiWeatherWidgetForecastColumn[] ¶ readonly SiWeatherWidgetForecastDay[] ¶
Represents a translatable string. This can either be a translation key, e.g. import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.
Describes how a weather illustration should be resolved. Callers can either provide a direct SiWeatherIcon.src or a semantic SiWeatherIcon.condition token resolved by a SiWeatherIconResolver.import type { SiWeatherIcon } from '@siemens/element-ng/dashboard';
A single day in the forecast block. Weather illustration for the day. A string is shorthand for illustration ? : Translatable day label, e.g. Maximum temperature, pre-formatted by the caller. maxTemperature : Minimum temperature, pre-formatted by the caller. minTemperature : import type { SiWeatherWidgetForecastDay } from '@siemens/element-ng/dashboard';
{ src }.string | SiWeatherIcon ¶ "Mon".string | number ¶ string | number ¶
An optional forecast column shown left of the temperature column in vertical layouts. The widget supports up to five of these columns; additional columns are ignored. The temperature column is mandatory and always rendered on the right; it does not need to be modelled as a column here. element-icons icon name shown next to each row value. Translatable column label, used as label ? : Per-day values, aligned by index with SiWeatherWidgetForecast.days. Missing entries are rendered as empty cells.import type { SiWeatherWidgetForecastColumn } from '@siemens/element-ng/dashboard';
aria-label for the column.TranslatableString ¶
Except where otherwise noted, content on this site is licensed under MIT License.