Skip to content
Edit this page

SiWeatherWidgetForecast Type documentation

TypeScript declaration

import type { SiWeatherWidgetForecast } from '@siemens/element-ng/dashboard';

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.

Properties

Types Documentation

import type { SiWeatherWidgetForecastColumn } from '@siemens/element-ng/dashboard';

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.

Properties

import type { SiWeatherWidgetForecastDay } from '@siemens/element-ng/dashboard';

A single day in the forecast block.

Properties

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. 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.

import type { SiWeatherIcon } from '@siemens/element-ng/dashboard';

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.

Properties


Except where otherwise noted, content on this site is licensed under MIT License.