Skip to content
Edit this page

SiWeatherIconResolution Type documentation

TypeScript declaration

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

Result returned by a SiWeatherIconResolver. Implementations should return either icon (rendered via <si-icon>) or src (rendered as a plain <img>). When both are present, icon wins.

Properties
  • Resolved alt text. The widget falls back to a sensible default.

    alt ? : TranslatableString

  • Resolved Element icon name (e.g. "element-sun"). Rendered via <si-icon>.

    icon ? : string

  • Resolved image URL. Rendered as a plain <img>.

    src ? : string

Types Documentation

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.


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