# Weather dashboard widget

**Weather dashboard widget** displays current weather conditions and, optionally, a short-term forecast for a single location.

## Usage

The weather dashboard widget displays current temperature and sky conditions, with an optional short-term forecast and additional meteorological parameters like humidity or wind speed.

The widget supports different layouts, and both the forecast days and the number of additional meteological parameters can be configured according to the use case.

![Weather dashboard widget](<../images/weather-widget.png>)

### When to use

- In dashboards and [tile layouts](<https://element.siemens.io/fundamentals/layouts/content/#tile-layout>).
- To display current outdoor or environmental conditions.
- To offer users a quick overview of the day's or week's weather.

### Best practices

- Show only the metrics most relevant to the context.
- Keep units consistent (e.g. °C or °F, km/h or mph).
- Pick the layout that matches the available tile size.
- Use a [skeleton](<https://element.siemens.io/components/progress-indication/skeleton/>) to represent the loading state.

## Design

### Elements

![Weather dashboard widget elements](<../images/weather-widget-elements.png>)

> 1\. Heading (location), 2. Current temperature, 3. Illustration, 4. Condition label, 5. Min/Max range, 6. Additional metrics (optional), 7. Forecast (optional)

### Layout variants

The widget supports three layouts:

- **Vertical:** Forecast with up to five columns of additional data (e.g., wind, precipitation, humidity, UV, pressure).
- **Horizontal:** Forecast with condition and temperature only.
- **Compact:** No forecast.

The forecast shows **up to seven days**. The number of days is configurable. Columns are hidden automatically as the widget narrows.

![Weather dashboard widget layout types](<../images/weather-widget-layouts.png>)

### Icon style

Weather conditions can be represented with flat Element icons or illustrated icons. For illustrated icons, the style may vary depending on the weather provider.

![Weather dashboard widget icon style](<../images/weather-widget-icon-style.png>)

## Code

The weather widget is built around two Angular components: the widget itself, which wraps an [`<si-card>`](<https://element.siemens.io/components/layout-navigation/cards/>), and a body component that can be reused for compositions.

### Component usage

To simplify the usage and reduce the code, Element offers an Angular component as a wrapper with streamlined inputs.

```
import { SiWeatherWidgetComponent } from '@siemens/element-ng/dashboard';

@Component({
  :
  imports: [SiWeatherWidgetComponent]
})
```

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component, inject } from '@angular/core';
import { SiWeatherWidgetComponent, SiWeatherWidgetData } from '@siemens/element-ng/dashboard';
import { LOG_EVENT } from '@siemens/live-preview';

@Component({
  selector: 'app-sample',
  imports: [SiWeatherWidgetComponent],
  templateUrl: './si-weather-widget.html',
  host: { class: 'p-5' }
})
export class SampleComponent {
  logEvent = inject(LOG_EVENT);

  // 1. Zug, Switzerland — full payload (current + metrics + 5-day forecast with extras).
  protected readonly zugFullData: SiWeatherWidgetData = {
    current: {
      temperature: '26°',
      condition: 'Sunny',
      illustration: { condition: 'clear' },
      minTemperature: '20°',
      maxTemperature: '28°'
    },
    metrics: [
      { label: 'Wind', value: '7 km/h' },
      { label: 'Cloud cover', value: '90%' },
      { label: 'Precipitation', value: '8 mm' },
      { label: 'UVI', value: '1 low' }
    ],
    forecast: {
      days: [
        {
          label: 'Mon',
          illustration: { condition: 'clear' },
          minTemperature: '18°',
          maxTemperature: '26°'
        },
        {
          label: 'Tue',
          illustration: { condition: 'clouds' },
          minTemperature: '17°',
          maxTemperature: '24°'
        },
        {
          label: 'Wed',
          illustration: { condition: 'rain' },
          minTemperature: '15°',
          maxTemperature: '21°'
        },
        {
          label: 'Thu',
          illustration: { condition: 'storm' },
          minTemperature: '14°',
          maxTemperature: '20°'
        },
        {
          label: 'Fri',
          illustration: { condition: 'wind' },
          minTemperature: '16°',
          maxTemperature: '22°'
        }
      ],
      columns: [
        {
          label: 'Wind',
          icon: 'element-wind',
          values: ['7 km/h', '6 km/h', '12 km/h', '14 km/h', '9 km/h']
        },
        {
          label: 'Precipitation',
          icon: 'element-water',
          values: ['0 mm', '1 mm', '8 mm', '12 mm', '2 mm']
        }
      ]
    }
  };

  // 2. Oslo, Norway — rain, current + forecast (no metrics).
  protected readonly osloRainData: SiWeatherWidgetData = {
    current: {
      temperature: '9°',
      condition: 'Rain',
      illustration: { condition: 'rain' },
      minTemperature: '6°',
      maxTemperature: '11°'
    },
    forecast: {
      days: [
        {
          label: 'Mon',
          illustration: { condition: 'rain' },
          minTemperature: '6°',
          maxTemperature: '10°'
        },
        {
          label: 'Tue',
          illustration: { condition: 'rain' },
          minTemperature: '5°',
          maxTemperature: '9°'
        },
        {
          label: 'Wed',
          illustration: { condition: 'clouds' },
          minTemperature: '7°',
          maxTemperature: '12°'
        },
        {
          label: 'Thu',
          illustration: { condition: 'clouds' },
          minTemperature: '8°',
          maxTemperature: '13°'
        },
        {
          label: 'Fri',
          illustration: { condition: 'rain' },
          minTemperature: '6°',
          maxTemperature: '10°'
        }
      ]
    }
  };

  // 3. Madrid, Spain — clear hot, current only.
  protected readonly madridSunData: SiWeatherWidgetData = {
    current: {
      temperature: '34°',
      condition: 'Clear',
      illustration: { condition: 'clear' },
      minTemperature: '24°',
      maxTemperature: '36°'
    }
  };

  // 4. Tokyo, Japan — clouds, full payload with distinct metrics.
  protected readonly tokyoFullData: SiWeatherWidgetData = {
    current: {
      temperature: '19°',
      condition: 'Cloudy',
      illustration: { condition: 'clouds' },
      minTemperature: '16°',
      maxTemperature: '22°'
    },
    metrics: [
      { label: 'Visibility', value: '10 km' },
      { label: 'Pressure', value: '1014 hPa' },
      { label: 'Humidity', value: '72%' }
    ],
    forecast: {
      days: [
        {
          label: 'Mon',
          illustration: { condition: 'clouds' },
          minTemperature: '16°',
          maxTemperature: '22°'
        },
        {
          label: 'Tue',
          illustration: { condition: 'rain' },
          minTemperature: '15°',
          maxTemperature: '19°'
        },
        {
          label: 'Wed',
          illustration: { condition: 'clear' },
          minTemperature: '18°',
          maxTemperature: '25°'
        },
        {
          label: 'Thu',
          illustration: { condition: 'clouds' },
          minTemperature: '17°',
          maxTemperature: '23°'
        },
        {
          label: 'Fri',
          illustration: { condition: 'wind' },
          minTemperature: '16°',
          maxTemperature: '21°'
        }
      ]
    }
  };

  // 5. Singapore — storm, current + forecast.
  protected readonly singaporeStormData: SiWeatherWidgetData = {
    current: {
      temperature: '28°',
      condition: 'Thunderstorm',
      illustration: { condition: 'storm' },
      minTemperature: '26°',
      maxTemperature: '31°'
    },
    forecast: {
      days: [
        {
          label: 'Mon',
          illustration: { condition: 'storm' },
          minTemperature: '26°',
          maxTemperature: '30°'
        },
        {
          label: 'Tue',
          illustration: { condition: 'rain' },
          minTemperature: '26°',
          maxTemperature: '29°'
        },
        {
          label: 'Wed',
          illustration: { condition: 'storm' },
          minTemperature: '26°',
          maxTemperature: '31°'
        },
        {
          label: 'Thu',
          illustration: { condition: 'rain' },
          minTemperature: '25°',
          maxTemperature: '29°'
        },
        {
          label: 'Fri',
          illustration: { condition: 'clouds' },
          minTemperature: '26°',
          maxTemperature: '30°'
        }
      ]
    }
  };

  // 6. Dubai, UAE — clear, current only.
  protected readonly dubaiSunData: SiWeatherWidgetData = {
    current: {
      temperature: '41°',
      condition: 'Sunny',
      illustration: { condition: 'clear' },
      minTemperature: '30°',
      maxTemperature: '43°'
    }
  };

  // 7. Zürich — compact with min/max range.
  protected readonly zurichCompactData: SiWeatherWidgetData = {
    current: {
      temperature: '22°',
      illustration: { condition: 'clear' },
      minTemperature: '17°',
      maxTemperature: '24°'
    }
  };

  // 8. Vienna — compact, temperature only.
  protected readonly viennaCompactData: SiWeatherWidgetData = {
    current: {
      temperature: '14°',
      illustration: { condition: 'clouds' }
    }
  };

  // 10. Palekastro, Crete — clear beach day with side image, full payload.
  protected readonly palekastroFullData: SiWeatherWidgetData = {
    current: {
      temperature: '29°',
      condition: 'Sunny',
      illustration: { condition: 'clear' },
      minTemperature: '23°',
      maxTemperature: '31°'
    },
    metrics: [
      { label: 'Wind', value: '23 knots' },
      { label: 'Humidity', value: '28%' },
      { label: 'UVI', value: '9 high' }
    ],
    forecast: {
      days: [
        {
          label: 'Mon',
          illustration: { condition: 'wind' },
          minTemperature: '23°',
          maxTemperature: '30°'
        },
        {
          label: 'Tue',
          illustration: { condition: 'clear' },
          minTemperature: '24°',
          maxTemperature: '32°'
        },
        {
          label: 'Wed',
          illustration: { condition: 'wind' },
          minTemperature: '22°',
          maxTemperature: '29°'
        },
        {
          label: 'Thu',
          illustration: { condition: 'wind' },
          minTemperature: '23°',
          maxTemperature: '30°'
        },
        {
          label: 'Fri',
          illustration: { condition: 'wind' },
          minTemperature: '22°',
          maxTemperature: '28°'
        }
      ]
    }
  };
}
```

Template:

```html
<div class="row align-items-start">
  <!-- 1. Vertical, full payload with 5-day forecast and extra columns -->
  <si-weather-widget
    class="col-lg-4 col-md-6 mb-6"
    layout="vertical"
    heading="Zug, Switzerland"
    [value]="zugFullData"
  />

  <!-- 2. Vertical, rain — current + forecast, no metrics -->
  <si-weather-widget
    class="col-lg-4 col-md-6 mb-6"
    layout="vertical"
    heading="Oslo, Norway"
    [value]="osloRainData"
  />

  <!-- 3. Vertical, current only -->
  <si-weather-widget
    class="col-lg-4 col-md-6 mb-6"
    layout="vertical"
    heading="Madrid, Spain"
    [value]="madridSunData"
  />

  <!-- 4. Horizontal, full payload, distinct metric set -->
  <si-weather-widget
    class="col-lg-4 col-md-6 mb-6"
    layout="horizontal"
    heading="Tokyo, Japan"
    [value]="tokyoFullData"
  />

  <!-- 5. Horizontal, storm — current + forecast -->
  <si-weather-widget
    class="col-lg-4 col-md-6 mb-6"
    layout="horizontal"
    heading="Singapore"
    [value]="singaporeStormData"
  />

  <!-- 6. Vertical, current only -->
  <si-weather-widget
    class="col-lg-4 col-md-6 mb-6"
    layout="vertical"
    heading="Dubai, UAE"
    [value]="dubaiSunData"
  />

  <!-- 7. Compact with min/max range -->
  <si-weather-widget
    class="col-lg-4 col-md-4 col-sm-6 mb-6"
    layout="compact"
    location="Zürich"
    [value]="zurichCompactData"
  />

  <!-- 8. Compact, temperature only -->
  <si-weather-widget
    class="col-lg-4 col-md-4 col-sm-6 mb-6"
    layout="compact"
    location="Vienna"
    [value]="viennaCompactData"
  />

  <!-- 9. Loading state -->
  <si-weather-widget
    class="col-lg-4 col-md-4 col-sm-6 mb-6"
    layout="vertical"
    heading="Munich, Germany"
    showLoadingIndicator
  />

  <!-- 10. Horizontal with image on the start (left) side -->
  <si-weather-widget
    class="col-lg-12 col-md-12 mb-6"
    layout="horizontal"
    heading="Palekastro, Crete"
    imgSrc="assets/images/beach.jpg"
    imgAlt="Beach"
    imgDir="horizontal"
    imgObjectFit="cover"
    [value]="palekastroFullData"
  />
</div>
```

### [SiWeatherWidgetComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L43-L137>)

**Kind:** component

**Selector:** `si-weather-widget`

```
import { SiWeatherWidgetComponent } from '@siemens/element-ng/dashboard';
```

Dashboard widget for current weather conditions, additional metrics and an optional multi-day forecast.

The widget supports three layouts (see [SiWeatherWidgetLayout](<index.html#t:SiWeatherWidgetLayout>)):

• `vertical` (default): full vertical card with `<si-card>` heading, illustration, today block, optional additional data and an optional forecast table with up to five extra columns.

• `horizontal`: wider card with the today block laid out side by side and a horizontal forecast strip below. The forecast SHOULD contain at least three days for a visually balanced layout.

• `compact`: condensed variant without a card header. The [location](<index.html#SiWeatherWidgetComponent.location>) is rendered next to the illustration. The forecast is not shown.

Data is supplied as a composite [value](<index.html#SiWeatherWidgetComponent.value>) payload of type [SiWeatherWidgetData](<index.html#t:SiWeatherWidgetData>).

Weather illustrations are resolved by an optional `SiWeatherIconResolver` that application developers register. Without a resolver the widget only renders illustrations when callers pass a direct `illustration.src`.

```
component SiWeatherWidgetComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [accentLine](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L123-L123>) | `AccentLineType \| undefined` |  | Optional accent line. |
| [disableAutoLoadingIndicator](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L82-L82>) | `boolean` | `false` | Option to disable automatic start of skeleton loading indication. |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L49-L49>) | `TranslatableString \| undefined` |  | Card heading text. Used as the card header in `vertical` and `horizontal` layouts. In the `compact` layout, the location is rendered inside the body instead and this input is ignored. |
| [imgAlt](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L103-L103>) | `TranslatableString \| undefined` |  | Alt text for a provided image. |
| [imgDir](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L109-L109>) | `"horizontal" \| "vertical"` | `'vertical'` | Defines if an image is placed on top or start (left) of the card. |
| [imgObjectFit](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L115-L115>) | `"fill" \| "contain" \| "cover" \| "none" \| "scale-down"` | `'scale-down'` | Sets the image [object-fit](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit>) CSS property. |
| [imgObjectPosition](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L119-L119>) | `string \| undefined` |  | Sets the image [object-position](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-position>) CSS property. |
| [imgSrc](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L99-L99>) | `string \| undefined` |  | Image source for the card. |
| [initialLoadingIndicatorDebounceTime](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L95-L95>) | `number` | `300` | Initial delay time in milliseconds before enabling loading indicator. Only used once initially during construction. |
| [layout](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L60-L60>) | `SiWeatherWidgetLayout` | `'vertical'` | Visual layout. [SiWeatherWidgetLayout](<index.html#t:SiWeatherWidgetLayout>). |
| [location](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L54-L54>) | `TranslatableString \| undefined` |  | Location displayed next to the illustration in the `compact` layout. Has no effect in `vertical` or `horizontal` layouts; use [heading](<index.html#SiWeatherWidgetComponent.heading>) there. |
| [primaryActions](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L70-L70>) | `ContentActionBarMainItem[]` | `[]` | Input list of primary action items. Supports up to **4** actions and omits additional ones. |
| [secondaryActions](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L76-L76>) | `MenuItem[]` | `[]` | Input list of secondary action items. |
| [showLoadingIndicator](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L88-L88>) | `boolean` | `false` | Input to start and stop the skeleton loading indication. |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.component.ts#L64-L64>) | `SiWeatherWidgetData \| undefined` |  | Composite weather payload of type [SiWeatherWidgetData](<index.html#t:SiWeatherWidgetData>). |

#### Weather widget body component

The body of `<si-weather-widget>` is implemented in the component `<si-weather-widget-body>`. You can use it for compositions where the [`<si-card>`](<https://element.siemens.io/components/layout-navigation/cards/>) wrapper is not appropriate.

### [SiWeatherWidgetBodyComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget-body.component.ts#L72-L111>)

**Kind:** component

**Selector:** `si-weather-widget-body`

```
import { SiWeatherWidgetBodyComponent } from '@siemens/element-ng/dashboard';
```

Body of the `<si-weather-widget>`. Useful for compositions that do not need the surrounding `<si-card>` chrome (e.g. embedding the weather inside a custom container).

Data is supplied as a composite [value](<index.html#SiWeatherWidgetBodyComponent.value>) payload of type [SiWeatherWidgetData](<index.html#t:SiWeatherWidgetData>).

The body delegates illustration resolution to the injected [SiWeatherIconResolver](<index.html#SiWeatherIconResolver>). The library ships a default resolver that maps the built-in [SiWeatherCondition](<../../../api/siemens/element-ng/types/SiWeatherCondition/index.html#t:SiWeatherCondition>) vocabulary to Element icons.

In the `vertical` layout the forecast list responsively hides additional data columns (wind, humidity, …) via pure CSS container queries when the widget becomes too narrow. See `si-weather-widget-body.component.scss` for the thresholds.

```
component SiWeatherWidgetBodyComponent extends SiWidgetBaseDirective<SiWeatherWidgetData>
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [disableAutoLoadingIndicator](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-widget-base.directive.ts#L35-L35>) (inherited) | `boolean` | `false` | Option to disable automatic start of skeleton loading indication.<br><br>Inherited from `SiWidgetBaseDirective<SiWeatherWidgetData>` |
| [forecastLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget-body.component.ts#L104-L106>) | `TranslatableString` | `` $localize`:@@SI_WEATHER_WIDGET.FORECAST_LABEL:Weather forecast` `` | Accessible label for the forecast section. |
| [initialLoadingIndicatorDebounceTime](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-widget-base.directive.ts#L59-L59>) (inherited) | `number` | `300` | Initial delay time in milliseconds before enabling loading indicator. Only used once initially during construction.<br><br>Inherited from `SiWidgetBaseDirective<SiWeatherWidgetData>` |
| [layout](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget-body.component.ts#L78-L78>) | `SiWeatherWidgetLayout` | `'vertical'` | Visual layout. [SiWeatherWidgetLayout](<index.html#t:SiWeatherWidgetLayout>). |
| [location](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget-body.component.ts#L84-L84>) | `TranslatableString \| undefined` |  | Optional location label, shown inside the body in the compact layout only. The non-compact layouts render the location via the `<si-card>` heading managed by `SiWeatherWidgetComponent`. |
| [metricsLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget-body.component.ts#L93-L95>) | `TranslatableString` | `` $localize`:@@SI_WEATHER_WIDGET.METRICS_LABEL:Additional weather data` `` | Accessible label for the additional data list. |
| [showLoadingIndicator](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-widget-base.directive.ts#L41-L45>) (inherited) | `boolean` | `false` | Input to start and stop the skeleton loading indication.<br><br>Inherited from `SiWidgetBaseDirective<SiWeatherWidgetData>` |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-widget-base.directive.ts#L29-L29>) (required, inherited) | `SiWeatherWidgetData \| undefined` |  | The main value to be displayed. If no value is set, the skeleton indicates the loading of the value. Disable the automatic loading mechanism by setting `SiWidgetBodyBaseComponent.disableAutoLoadingIndicator`.<br><br>Inherited from `SiWidgetBaseDirective<SiWeatherWidgetData>` |

#### Attributes and Methods

##### showLoadingIndicator

[Source for showLoadingIndicator](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-widget-base.directive.ts#L49-L51>)

**Modifiers:** readonly, inherited

**Type:** `Signal<boolean>`

**Default:** `...`

Inherited from `SiWidgetBaseDirective<SiWeatherWidgetData>`

### Configurable playground

The configurable example exposes every input of the widget and is useful for exploring layouts, metrics and forecast extras interactively.

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { HttpErrorResponse } from '@angular/common/http';
import { Component, computed, inject, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import {
  SiWeatherCondition,
  SiWeatherWidgetComponent,
  SiWeatherWidgetData,
  SiWeatherWidgetForecast,
  SiWeatherWidgetLayout,
  SiWeatherWidgetMetric
} from '@siemens/element-ng/dashboard';

import {
  aggregateForecast,
  mapOpenWeatherCondition,
  OpenWeatherCitySuggestion,
  OpenWeatherService,
  OpenWeatherSnapshot
} from './open-weather.service';

const ALL_CONDITIONS: SiWeatherCondition[] = [
  'clear',
  'clouds',
  'rain',
  'storm',
  'wind',
  'unknown'
];

const SAMPLE_FORECAST: SiWeatherWidgetForecast = {
  days: [
    {
      label: 'Mon',
      illustration: { condition: 'clear' },
      minTemperature: '18°',
      maxTemperature: '26°'
    },
    {
      label: 'Tue',
      illustration: { condition: 'clouds' },
      minTemperature: '17°',
      maxTemperature: '24°'
    },
    {
      label: 'Wed',
      illustration: { condition: 'rain' },
      minTemperature: '15°',
      maxTemperature: '21°'
    },
    {
      label: 'Thu',
      illustration: { condition: 'storm' },
      minTemperature: '14°',
      maxTemperature: '20°'
    },
    {
      label: 'Fri',
      illustration: { condition: 'wind' },
      minTemperature: '16°',
      maxTemperature: '22°'
    }
  ],
  columns: [
    {
      label: 'Wind',
      icon: 'element-wind',
      values: ['7 km/h', '6 km/h', '12 km/h', '14 km/h', '9 km/h']
    },
    {
      label: 'Precipitation',
      icon: 'element-water',
      values: ['0 mm', '1 mm', '8 mm', '12 mm', '2 mm']
    },
    {
      label: 'Humidity',
      icon: 'element-humidity',
      values: ['60%', '65%', '85%', '90%', '70%']
    },
    {
      label: 'Cloud cover',
      icon: 'element-cloud',
      values: ['20%', '40%', '90%', '95%', '60%']
    },
    {
      label: 'UV',
      icon: 'element-sun',
      values: ['7', '5', '2', '1', '4']
    }
  ]
};

const SAMPLE_METRICS: SiWeatherWidgetMetric[] = [
  { label: 'Wind', value: '7 km/h' },
  { label: 'Cloud cover', value: '90%' },
  { label: 'Precipitation', value: '8 mm' },
  { label: 'UVI', value: '1 low' }
];

const API_KEY_STORAGE = 'si-weather-widget-demo.openweather-api-key';
const DAY_LABELS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];

@Component({
  selector: 'app-sample',
  imports: [FormsModule, SiWeatherWidgetComponent],
  templateUrl: './si-weather-widget-configurable.html',
  host: { class: 'p-5' }
})
export class SampleComponent {
  protected readonly conditions = ALL_CONDITIONS;

  protected readonly layout = signal<SiWeatherWidgetLayout>('vertical');
  protected readonly location = signal<string>('Zug, Switzerland');
  protected readonly temperature = signal<string>('26°');
  protected readonly minTemperature = signal<string>('20°');
  protected readonly maxTemperature = signal<string>('28°');
  protected readonly condition = signal<SiWeatherCondition>('clear');
  protected readonly conditionLabel = signal<string>('Sunny');
  protected readonly showMetrics = signal(true);
  protected readonly showForecast = signal(true);
  protected readonly showForecastColumns = signal(true);
  protected readonly showLoading = signal(false);
  /** Number of extra forecast columns (0–5). */
  protected readonly extrasCount = signal<number>(2);
  protected readonly accentLine = signal<
    'primary' | 'success' | 'warning' | 'caution' | 'danger' | undefined
  >(undefined);

  // OpenWeather mode -----------------------------------------------------
  private readonly openWeather = inject(OpenWeatherService);
  protected readonly mode = signal<'manual' | 'openweather'>('manual');
  protected readonly apiKey = signal<string>(
    typeof localStorage !== 'undefined' ? (localStorage.getItem(API_KEY_STORAGE) ?? '') : ''
  );
  protected readonly suggestions = signal<OpenWeatherCitySuggestion[]>([]);
  protected readonly selectedCity = signal<OpenWeatherCitySuggestion | null>(null);
  protected readonly units = signal<'metric' | 'imperial'>('metric');
  protected readonly fetching = signal(false);
  protected readonly fetchError = signal<string | null>(null);
  private readonly snapshot = signal<OpenWeatherSnapshot | null>(null);

  private readonly manualValue = computed<SiWeatherWidgetData>(() => {
    const data: SiWeatherWidgetData = {
      current: {
        temperature: this.temperature(),
        condition: this.conditionLabel() || undefined,
        illustration: {
          condition: this.condition()
        },
        minTemperature: this.minTemperature() || undefined,
        maxTemperature: this.maxTemperature() || undefined
      }
    };
    if (this.showMetrics()) {
      data.metrics = SAMPLE_METRICS;
    }
    if (this.showForecast()) {
      const baseColumns = SAMPLE_FORECAST.columns ?? [];
      const columns = this.showForecastColumns()
        ? baseColumns.slice(0, this.extrasCount())
        : undefined;
      data.forecast = { days: SAMPLE_FORECAST.days, columns };
    }
    return data;
  });

  private readonly openWeatherValue = computed<SiWeatherWidgetData | undefined>(() => {
    const snap = this.snapshot();
    if (!snap) {
      return undefined;
    }
    return this.snapshotToData(snap);
  });

  protected readonly value = computed<SiWeatherWidgetData | undefined>(() => {
    return this.mode() === 'openweather' ? this.openWeatherValue() : this.manualValue();
  });

  protected readonly effectiveHeading = computed(() => this.location());

  protected readonly effectiveLocation = computed(() => {
    const value = this.location();
    return value.split(',')[0]?.trim() || value;
  });

  protected readonly effectiveLoading = computed(
    () => this.showLoading() || (this.mode() === 'openweather' && this.fetching())
  );

  protected async onSearch(): Promise<void> {
    this.fetchError.set(null);
    const key = this.apiKey().trim();
    if (!key) {
      this.fetchError.set('Enter an OpenWeather API key first.');
      return;
    }
    try {
      const results = await this.openWeather.searchCities(this.location(), key);
      this.suggestions.set(results);
      if (!results.length) {
        this.fetchError.set('No matching city found.');
      }
    } catch (err) {
      this.fetchError.set(this.errorMessage(err));
    }
  }

  protected async onSelectCity(city: OpenWeatherCitySuggestion): Promise<void> {
    this.selectedCity.set(city);
    this.location.set(city.label);
    this.suggestions.set([]);
    await this.fetch(city);
  }

  protected async onReload(): Promise<void> {
    const city = this.selectedCity();
    if (city) {
      await this.fetch(city);
    }
  }

  protected onApiKeyChange(value: string): void {
    this.apiKey.set(value);
    if (typeof localStorage !== 'undefined') {
      if (value) {
        localStorage.setItem(API_KEY_STORAGE, value);
      } else {
        localStorage.removeItem(API_KEY_STORAGE);
      }
    }
  }

  private async fetch(city: OpenWeatherCitySuggestion): Promise<void> {
    const key = this.apiKey().trim();
    if (!key) {
      return;
    }
    this.fetching.set(true);
    this.fetchError.set(null);
    try {
      const snap = await this.openWeather.load(city.lat, city.lon, key, this.units());
      this.snapshot.set(snap);
    } catch (err) {
      this.fetchError.set(this.errorMessage(err));
    } finally {
      this.fetching.set(false);
    }
  }

  private snapshotToData(snap: OpenWeatherSnapshot): SiWeatherWidgetData {
    const tempUnit = this.units() === 'metric' ? '°C' : '°F';
    const windUnit = this.units() === 'metric' ? 'm/s' : 'mph';
    const w = snap.current.weather[0];
    const data: SiWeatherWidgetData = {
      current: {
        temperature: `${Math.round(snap.current.main.temp)}${tempUnit}`,
        condition: w?.description?.replace(/^./, c => c.toUpperCase()),
        illustration: {
          condition: mapOpenWeatherCondition(w?.id ?? 0)
        },
        minTemperature: `${Math.round(snap.current.main.temp_min)}${tempUnit}`,
        maxTemperature: `${Math.round(snap.current.main.temp_max)}${tempUnit}`
      }
    };
    if (this.showMetrics()) {
      data.metrics = [
        { label: 'Wind', value: `${snap.current.wind.speed.toFixed(1)}${windUnit}` },
        { label: 'Humidity', value: `${snap.current.main.humidity}%` },
        { label: 'Cloud cover', value: `${snap.current.clouds.all}%` },
        {
          label: 'Precipitation',
          value: `${(snap.current.rain?.['1h'] ?? snap.current.rain?.['3h'] ?? 0).toFixed(1)}mm`
        }
      ];
    }
    if (this.showForecast()) {
      const days = aggregateForecast(snap.forecast, 5).map(d => ({
        label: DAY_LABELS[d.date.getDay()],
        illustration: {
          condition: mapOpenWeatherCondition(d.weather.id)
        },
        minTemperature: `${Math.round(d.min)}${tempUnit}`,
        maxTemperature: `${Math.round(d.max)}${tempUnit}`
      }));
      data.forecast = { days };
    }
    return data;
  }

  private errorMessage(err: unknown): string {
    if (err instanceof HttpErrorResponse) {
      const body = err.error as { message?: string } | string | null | undefined;
      const apiMessage = typeof body === 'string' ? body : (body?.message ?? '');
      if (err.status === 401) {
        return `HTTP 401 Unauthorized — ${apiMessage || 'invalid or not-yet-activated API key.'} New OpenWeather keys can take up to a couple of hours to activate.`;
      }
      if (err.status === 404) {
        return `HTTP 404 — ${apiMessage || 'city not found.'}`;
      }
      if (err.status === 429) {
        return `HTTP 429 — rate limit exceeded. ${apiMessage}`;
      }
      if (err.status === 0) {
        return 'Network problem — could not reach api.openweathermap.org. Check your connection or CORS settings.';
      }
      return `HTTP ${err.status} — ${apiMessage || 'request failed.'}`;
    }
    if (err && typeof err === 'object' && 'message' in err) {
      return String((err as { message: unknown }).message);
    }
    return 'Request failed.';
  }
}
```

Template:

```html
<div class="row align-items-start">
  <aside class="col-lg-4 col-md-5 mb-6">
    <h5>Data source</h5>
    <div class="btn-group mb-4" role="group" aria-label="Data source">
      <input
        type="radio"
        class="btn-check"
        id="src-manual"
        name="src"
        value="manual"
        [ngModel]="mode()"
        (ngModelChange)="mode.set($event)"
      />
      <label class="btn btn-secondary" for="src-manual">Manual</label>
      <input
        type="radio"
        class="btn-check"
        id="src-ow"
        name="src"
        value="openweather"
        [ngModel]="mode()"
        (ngModelChange)="mode.set($event)"
      />
      <label class="btn btn-secondary" for="src-ow">OpenWeather</label>
    </div>

    @if (mode() === 'openweather') {
      <form class="row g-3 mb-5" (submit)="$event.preventDefault(); onSearch()">
        <div class="col-12">
          <label class="form-label" for="cfg-api-key">OpenWeather API key</label>
          <input
            id="cfg-api-key"
            class="form-control"
            type="password"
            autocomplete="off"
            placeholder="paste your free API key"
            name="apiKey"
            [ngModel]="apiKey()"
            (ngModelChange)="onApiKeyChange($event)"
          />
          <small class="form-text">
            Get one at
            <a href="https://home.openweathermap.org/api_keys" target="_blank" rel="noopener">
              openweathermap.org
            </a>
            . Stored only in your browser's localStorage.
          </small>
        </div>
      </form>
    }

    <form (submit)="$event.preventDefault(); mode() === 'openweather' && onSearch()">
      <div class="row g-3">
        <div [class]="mode() === 'openweather' ? 'col-8' : 'col-12'">
          <label class="form-label" for="cfg-location">Location</label>
          <input
            id="cfg-location"
            class="form-control"
            name="location"
            [ngModel]="location()"
            (ngModelChange)="location.set($event)"
          />
        </div>

        @if (mode() === 'openweather') {
          <div class="col-4">
            <label class="form-label" for="cfg-units">Units</label>
            <select
              id="cfg-units"
              class="form-select"
              name="units"
              [ngModel]="units()"
              (ngModelChange)="units.set($event)"
            >
              <option value="metric">metric</option>
              <option value="imperial">imperial</option>
            </select>
          </div>

          <div class="col-12 d-flex gap-2">
            <button type="submit" class="btn btn-primary" [disabled]="fetching()"> Search </button>
            <button
              type="button"
              class="btn btn-secondary"
              [disabled]="!selectedCity() || fetching()"
              (click)="onReload()"
            >
              Reload
            </button>
          </div>

          @if (fetchError()) {
            <div class="col-12 text-danger">{{ fetchError() }}</div>
          }
          @if (suggestions().length) {
            <div class="col-12">
              <ul class="list list-divider">
                @for (city of suggestions(); track city.label) {
                  <li>
                    <button
                      type="button"
                      class="list-item list-item-action"
                      (click)="onSelectCity(city)"
                    >
                      {{ city.label }}
                    </button>
                  </li>
                }
              </ul>
            </div>
          }
          @if (selectedCity()) {
            <div class="col-12 text-disabled">
              Showing: <strong>{{ selectedCity()!.label }}</strong>
            </div>
          }
        }

        <div class="col-12">
          <label class="form-label" for="cfg-layout">Layout</label>
          <select
            id="cfg-layout"
            class="form-select"
            name="layout"
            [ngModel]="layout()"
            (ngModelChange)="layout.set($event)"
          >
            <option value="vertical">vertical</option>
            <option value="horizontal">horizontal</option>
            <option value="compact">compact</option>
          </select>
        </div>

        @if (mode() === 'manual') {
          <div class="col-4">
            <label class="form-label" for="cfg-temp">Temperature</label>
            <input
              id="cfg-temp"
              class="form-control"
              name="temp"
              [ngModel]="temperature()"
              (ngModelChange)="temperature.set($event)"
            />
          </div>
          <div class="col-4">
            <label class="form-label" for="cfg-min">Min</label>
            <input
              id="cfg-min"
              class="form-control"
              name="min"
              [ngModel]="minTemperature()"
              (ngModelChange)="minTemperature.set($event)"
            />
          </div>
          <div class="col-4">
            <label class="form-label" for="cfg-max">Max</label>
            <input
              id="cfg-max"
              class="form-control"
              name="max"
              [ngModel]="maxTemperature()"
              (ngModelChange)="maxTemperature.set($event)"
            />
          </div>

          <div class="col-12">
            <label class="form-label" for="cfg-condition">Condition (token)</label>
            <select
              id="cfg-condition"
              class="form-select"
              name="condition"
              [ngModel]="condition()"
              (ngModelChange)="condition.set($event)"
            >
              @for (c of conditions; track c) {
                <option [value]="c">{{ c }}</option>
              }
            </select>
          </div>

          <div class="col-12">
            <label class="form-label" for="cfg-condition-label">Condition label (display)</label>
            <input
              id="cfg-condition-label"
              class="form-control"
              name="conditionLabel"
              [ngModel]="conditionLabel()"
              (ngModelChange)="conditionLabel.set($event)"
            />
          </div>
        }

        <div class="col-6">
          <label class="form-label" for="cfg-accent">Accent line</label>
          <select
            id="cfg-accent"
            class="form-select"
            name="accent"
            [ngModel]="accentLine()"
            (ngModelChange)="accentLine.set($event)"
          >
            <option [ngValue]="undefined">(none)</option>
            <option ngValue="primary">primary</option>
            <option ngValue="success">success</option>
            <option ngValue="warning">warning</option>
            <option ngValue="caution">caution</option>
            <option ngValue="danger">danger</option>
          </select>
        </div>

        <div class="col-12 form-check mb-2 ms-2">
          <input
            id="cfg-metrics"
            class="form-check-input"
            type="checkbox"
            name="metrics"
            [ngModel]="showMetrics()"
            (ngModelChange)="showMetrics.set($event)"
          />
          <label class="form-check-label" for="cfg-metrics">Show additional data</label>
        </div>
        <div class="col-12 form-check mb-2 ms-2">
          <input
            id="cfg-forecast"
            class="form-check-input"
            type="checkbox"
            name="forecast"
            [ngModel]="showForecast()"
            (ngModelChange)="showForecast.set($event)"
          />
          <label class="form-check-label" for="cfg-forecast">Show forecast</label>
        </div>
        <div class="col-12 form-check mb-2 ms-2">
          <input
            id="cfg-fcols"
            class="form-check-input"
            type="checkbox"
            name="fcols"
            [ngModel]="showForecastColumns()"
            (ngModelChange)="showForecastColumns.set($event)"
          />
          <label class="form-check-label" for="cfg-fcols">
            Show forecast extra columns (vertical, manual mode)
          </label>
        </div>
        <div class="col-12 form-check mb-2 ms-2">
          <input
            id="cfg-loading"
            class="form-check-input"
            type="checkbox"
            name="loading"
            [ngModel]="showLoading()"
            (ngModelChange)="showLoading.set($event)"
          />
          <label class="form-check-label" for="cfg-loading">Show loading indicator</label>
        </div>
        <div class="col-12 ms-4">
          <label class="form-label" for="cfg-extras-count">
            Extra forecast columns ({{ extrasCount() }} of 5)
          </label>
          <input
            id="cfg-extras-count"
            class="form-range"
            type="range"
            name="extrasCount"
            min="0"
            max="5"
            step="1"
            [disabled]="!showForecastColumns()"
            [ngModel]="extrasCount()"
            (ngModelChange)="extrasCount.set(+$event)"
          />
        </div>
      </div>
    </form>
  </aside>

  <section class="col-lg-8 col-md-7">
    <si-weather-widget
      [layout]="layout()"
      [heading]="effectiveHeading()"
      [location]="effectiveLocation()"
      [value]="value()"
      [accentLine]="accentLine()"
      [disableAutoLoadingIndicator]="true"
      [showLoadingIndicator]="effectiveLoading()"
    />
  </section>
</div>
```

### Icon resolver

Weather illustrations are produced by an injectable `SiWeatherIconResolver`. The library ships a default resolver that maps the built-in `SiWeatherCondition` vocabulary (`clear`, `clouds`, `rain`, `storm`, `wind`, `unknown`) to Element icons:

| Condition | Icon |
| --- | --- |
| `clear` | `element-sun` |
| `clouds` | `element-cloudy` |
| `rain` | `element-rain` |
| `storm` | `element-storm` |
| `wind` | `element-wind` |
| `unknown` | *(no icon)* |

Applications can override the default by providing their own resolver. A resolver returns either an Element icon name (rendered via `<si-icon>`) or a direct image URL (rendered as `<img>`); callers can also pass an `src` directly via `illustration.src` to bypass the resolver.

#### Implementing a custom resolver

A custom resolver extends `SiWeatherIconResolver` and returns one of:

- `{ icon: '<name>' }` — rendered as `<si-icon icon="…">`.
- `{ src: '<url>' }` — rendered as `<img src="…">`.
- `null` — no illustration is shown.

The example below uses the MIT-licensed [meteocons](<https://github.com/basmilius/meteocons>) static SVG set (`@meteocons/svg-static`). The icons are exposed via `angular.json` under `/assets/meteocons/`:

```
// angular.json (assets array)
{
  "glob": "*.svg",
  "input": "node_modules/@meteocons/svg-static/fill",
  "output": "/assets/meteocons/"
}
```

The resolver is a small class that maps the six built-in condition tokens to file names. For more complex scenarios, you can introduce or reuse a richer condition vocabulary. It is registered as a component-level provider, so the override is scoped to this example:

```
providers: [{ provide: SiWeatherIconResolver, useClass: SiWeatherWidgetMeteoconsIconResolver }];
```

For an application-wide override, register the resolver in the root injector instead (`providedIn: 'root'` on the class itself, or via `providers` in `bootstrapApplication`).

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import {
  SiWeatherIconResolver,
  SiWeatherWidgetComponent,
  SiWeatherWidgetData
} from '@siemens/element-ng/dashboard';

import { SiWeatherWidgetMeteoconsIconResolver } from './si-weather-widget-meteocons-icon.resolver';

@Component({
  selector: 'app-sample',
  imports: [SiWeatherWidgetComponent],
  templateUrl: './si-weather-widget-custom-resolver.html',
  providers: [{ provide: SiWeatherIconResolver, useClass: SiWeatherWidgetMeteoconsIconResolver }],
  host: { class: 'p-5' }
})
export class SampleComponent {
  protected readonly data: SiWeatherWidgetData = {
    current: {
      temperature: '26°',
      condition: 'Sunny',
      illustration: { condition: 'clear' },
      minTemperature: '20°',
      maxTemperature: '28°'
    },
    metrics: [
      { label: 'Wind', value: '7 km/h' },
      { label: 'Humidity', value: '54%' },
      { label: 'Cloud cover', value: '12%' },
      { label: 'Precipitation', value: '0 mm' },
      { label: 'UV index', value: '6 high' },
      { label: 'Pressure', value: '1018 hPa' }
    ],
    forecast: {
      days: [
        {
          label: 'Mon',
          illustration: { condition: 'clear' },
          minTemperature: '18°',
          maxTemperature: '26°'
        },
        {
          label: 'Tue',
          illustration: { condition: 'clouds' },
          minTemperature: '17°',
          maxTemperature: '24°'
        },
        {
          label: 'Wed',
          illustration: { condition: 'rain' },
          minTemperature: '15°',
          maxTemperature: '21°'
        },
        {
          label: 'Thu',
          illustration: { condition: 'storm' },
          minTemperature: '14°',
          maxTemperature: '20°'
        },
        {
          label: 'Fri',
          illustration: { condition: 'wind' },
          minTemperature: '16°',
          maxTemperature: '22°'
        }
      ],
      columns: [
        {
          label: 'Wind',
          icon: 'element-wind',
          values: ['7 km/h', '6 km/h', '12 km/h', '14 km/h', '9 km/h']
        },
        {
          label: 'Precipitation',
          icon: 'element-water',
          values: ['0 mm', '1 mm', '8 mm', '12 mm', '2 mm']
        }
      ]
    }
  };
}
```

Template:

```html
<si-weather-widget
  style="display: block; inline-size: 500px"
  heading="Zug, Switzerland"
  [value]="data"
/>
```

### [SiWeatherIconResolver](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-icon.resolver.ts#L49-L51>)

**Kind:** class

**Provided in:** `root`

```
import { SiWeatherIconResolver } from '@siemens/element-ng/dashboard';
```

Maps a semantic [SiWeatherIcon](<index.html#t:SiWeatherIcon>) to a renderable illustration. The library ships a [SiDefaultWeatherIconResolver](<../../../api/siemens/element-ng/injectables/SiDefaultWeatherIconResolver/index.html#SiDefaultWeatherIconResolver>) that maps the built-in [SiWeatherCondition](<../../../api/siemens/element-ng/types/SiWeatherCondition/index.html#t:SiWeatherCondition>) vocabulary to Element icons, so the widget renders a reasonable illustration out of the box. Applications can override the mapping or add provider-specific vocabularies by registering their own resolver:

Example:

```ts
@Injectable({ providedIn: 'root' })
export class MyWeatherIconResolver extends SiWeatherIconResolver {
  override resolve(icon: SiWeatherIcon): SiWeatherIconResolution | null {
    // ...
  }
}
```

Resolvers SHOULD return `null` for unknown or `'unknown'` conditions so the widget can skip the illustration.

```
undecorated_class SiWeatherIconResolver
```

#### Attributes and Methods

##### resolve

[Source for resolve](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-icon.resolver.ts#L50-L50>)

```
resolve(icon: SiWeatherIcon): SiWeatherIconResolution | null
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-icon.resolver.ts#L50-L50>) | `SiWeatherIcon` |  |  |

**Returns:** [SiWeatherIconResolution](<index.html#t:SiWeatherIconResolution>)`  |  `[null](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/null>)

### Types Documentation

### [AccentLineType](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/status-type.model.ts#L10-L10>)

**Kind:** type alias

```
import type { AccentLineType } from '@siemens/element-ng/common';
```

```
type AccentLineType = StatusType | 'caution' | 'primary' | 'inactive'
```

### [ContentActionBarMainItem](<https://github.com/siemens/element/blob/main/projects/element-ng/content-action-bar/si-content-action-bar.model.ts#L15-L17>)

**Kind:** type alias

```
import type { ContentActionBarMainItem } from '@siemens/element-ng/content-action-bar';
```

```
type ContentActionBarMainItem = (
  MenuItemAction | MenuItemCheckbox | MenuItemLink | MenuItemRouterLink | MenuItemGroup
) & { iconOnly?: boolean }
```

### [MenuItem](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L102-L111>)

**Kind:** type alias

```
import type { MenuItem } from '@siemens/element-ng/menu';
```

```
type MenuItem = | MenuItemGroup
  | MenuItemAction
  | MenuItemRouterLink
  | MenuItemLink
  | MenuItemRadioGroup
  | MenuItemCheckbox
  | MenuItemRadio
  | MenuItemHeader
  | MenuDivider
```

### [SiWeatherWidgetData](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L123-L127>)

**Kind:** interface

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

Composite payload accepted by the body component. Granular widget/body inputs (`current`, `metrics`, `forecast`) take precedence when set.

```
interface SiWeatherWidgetData
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [current](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L124-L124>) | `SiWeatherWidgetCurrent` |  |
| [forecast](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L126-L126>) (optional) | `SiWeatherWidgetForecast` |  |
| [metrics](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L125-L125>) (optional) | `readonly SiWeatherWidgetMetric[]` |  |

### [SiWeatherWidgetLayout](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L17-L17>)

**Kind:** type alias

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

Visual layout of the [SiWeatherWidgetComponent](<index.html#SiWeatherWidgetComponent>).

• `vertical`: full vertical card layout with header, today block, optional additional data and an optional vertical forecast table.

• `horizontal`: wider card with the today block laid out side by side and a horizontal forecast strip below.

• `compact`: condensed card without a card header. Location and min/max temperature are rendered next to the illustration. Does not show a forecast.

```
type SiWeatherWidgetLayout = 'vertical' | 'horizontal' | 'compact'
```

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
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.

```
type TranslatableString = string & Translatable
```

### [SiWeatherIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L33-L40>)

**Kind:** interface

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

Describes how a weather illustration should be resolved. Callers can either provide a direct [SiWeatherIcon.src](<index.html#t:SiWeatherIcon.src>) or a semantic [SiWeatherIcon.condition](<index.html#t:SiWeatherIcon.condition>) token resolved by a [SiWeatherIconResolver](<index.html#SiWeatherIconResolver>).

```
interface SiWeatherIcon
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [alt](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L39-L39>) (optional) | `TranslatableString` | Translatable alt text for accessibility. |
| [condition](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L35-L35>) (optional) | `string` | Semantic condition token, used by the resolver. Apps with custom resolvers may pass any string. |
| [src](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L37-L37>) (optional) | `string` | Direct URL/path. Wins over [condition](<index.html#t:SiWeatherIcon.condition>). |

### [SiWeatherIconResolution](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-icon.resolver.ts#L15-L22>)

**Kind:** interface

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

Result returned by a [SiWeatherIconResolver](<index.html#SiWeatherIconResolver>). Implementations should return either [icon](<index.html#t:SiWeatherIconResolution.icon>) (rendered via `<si-icon>`) or [src](<index.html#t:SiWeatherIconResolution.src>) (rendered as a plain `<img>`). When both are present, [icon](<index.html#t:SiWeatherIconResolution.icon>) wins.

```
interface SiWeatherIconResolution
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [alt](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-icon.resolver.ts#L21-L21>) (optional) | `TranslatableString` | Resolved alt text. The widget falls back to a sensible default. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-icon.resolver.ts#L17-L17>) (optional) | `string` | Resolved Element icon name (e.g. `"element-sun"`). Rendered via `<si-icon>`. |
| [src](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-icon.resolver.ts#L19-L19>) (optional) | `string` | Resolved image URL. Rendered as a plain `<img>`. |

### [SiWeatherWidgetCurrent](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L45-L58>)

**Kind:** interface

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

Today block of the weather widget.

```
interface SiWeatherWidgetCurrent
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [condition](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L49-L49>) (optional) | `TranslatableString` | Translatable condition label, e.g. `"Sunny"`. |
| [illustration](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L51-L51>) (optional) | `string \| SiWeatherIcon` | Weather illustration. A string is shorthand for `{ src }`. |
| [illustrationAlt](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L53-L53>) (optional) | `TranslatableString` | Optional alt text used when [illustration](<index.html#t:SiWeatherWidgetCurrent.illustration>) is given as a string. |
| [maxTemperature](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L57-L57>) (optional) | `string \| number` | Today's maximum temperature, pre-formatted by the caller. |
| [minTemperature](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L55-L55>) (optional) | `string \| number` | Today's minimum temperature, pre-formatted by the caller. |
| [temperature](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L47-L47>) | `string \| number` | Current temperature, pre-formatted by the caller (e.g. `"26°"` or `26`). |

### [SiWeatherWidgetMetric](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L63-L68>)

**Kind:** interface

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

A single metric row in the additional-data block (e.g. wind, precipitation).

```
interface SiWeatherWidgetMetric
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L65-L65>) | `TranslatableString` | Translatable label, e.g. `"Wind"`. |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L67-L67>) | `string \| number` | Pre-formatted value, e.g. `"7km/h"`. |

### [SiWeatherWidgetForecast](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L111-L117>)

**Kind:** interface

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

Forecast block of the weather widget.

The vertical layout supports up to five optional [columns](<index.html#t:SiWeatherWidgetForecast.columns>) in addition to the mandatory rightmost min/max temperature column. The horizontal layout ignores [columns](<index.html#t:SiWeatherWidgetForecast.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.

```
interface SiWeatherWidgetForecast
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [columns](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L116-L116>) (optional) | `readonly SiWeatherWidgetForecastColumn[]` | Optional extra columns (vertical layout only). At most five are rendered. |
| [days](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L113-L113>) | `readonly SiWeatherWidgetForecastDay[]` | The forecast days in display order. |

### [MenuItemAction](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L34-L41>)

**Kind:** interface

```
import type { MenuItemAction } from '@siemens/element-ng/menu';
```

```
interface MenuItemAction extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L40-L40>) | `string \| ((actionParam: any, source: MenuItemAction) => void)` | Action that called when the item is triggered. A function will be called, a string will be dispatched to the [SiMenuActionService](<../../../api/siemens/element-ng/types/SiMenuActionService/index.html#t:SiMenuActionService>). |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L35-L35>) | `"action"` |  |

### [MenuItemCheckbox](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L81-L90>)

**Kind:** interface

```
import type { MenuItemCheckbox } from '@siemens/element-ng/menu';
```

```
interface MenuItemCheckbox extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L89-L89>) | `string \| ((actionParam: any, source: MenuItemCheckbox) => void)` | Action that called when the item is triggered. A function will be called, a string will be dispatched to the [SiMenuActionService](<../../../api/siemens/element-ng/types/SiMenuActionService/index.html#t:SiMenuActionService>). |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [checked](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L84-L84>) | `boolean` | Whether the checkbox is checked. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L82-L82>) | `"checkbox"` |  |

### [MenuItemLink](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L56-L62>)

**Kind:** interface

```
import type { MenuItemLink } from '@siemens/element-ng/menu';
```

```
interface MenuItemLink extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L59-L59>) | `string` | The href property of the anchor. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L61-L61>) (optional) | `string` | The target property of the anchor. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L57-L57>) | `"link"` |  |

### [MenuItemRouterLink](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L48-L54>)

**Kind:** interface

```
import type { MenuItemRouterLink } from '@siemens/element-ng/menu';
```

Represents a menu item that navigates using the Angular Router.

Requires a configured Angular Router.

```
interface MenuItemRouterLink extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [extras](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L53-L53>) (optional) | `NavigationExtras` | Navigation extras that are passed to the [RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [routerLink](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L51-L51>) | `string \| any[]` | Link for the angular router. Accepts the same values as [RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L49-L49>) | `"router-link"` |  |

### [MenuItemGroup](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L28-L32>)

**Kind:** interface

```
import type { MenuItemGroup } from '@siemens/element-ng/menu';
```

```
interface MenuItemGroup extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [children](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L31-L31>) | `MenuItem[]` | Submenu items for this menu item. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L29-L29>) | `"group"` |  |

### [MenuItemRadioGroup](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L64-L68>)

**Kind:** interface

```
import type { MenuItemRadioGroup } from '@siemens/element-ng/menu';
```

```
interface MenuItemRadioGroup
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [children](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L67-L67>) | `[MenuItemHeader, ...(MenuItemRadio \| MenuItemHeader \| MenuDivider)[]]` | Items that are part of the radio group. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L65-L65>) | `"radio-group"` |  |

### [MenuItemRadio](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L70-L79>)

**Kind:** interface

```
import type { MenuItemRadio } from '@siemens/element-ng/menu';
```

```
interface MenuItemRadio extends MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L78-L78>) | `string \| ((actionParam: any, source: MenuItemRadio) => void)` | Action that called when the item is triggered. A function will be called, a string will be dispatched to the [SiMenuActionService](<../../../api/siemens/element-ng/types/SiMenuActionService/index.html#t:SiMenuActionService>). |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional, inherited) | `string \| number` | Badge that is rendered after the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional, inherited) | `string` | Color of the badge (not iconBadge).<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [checked](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L73-L73>) | `boolean` | Whether the radio is checked. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional, inherited) | `boolean` | Whether the menu item id disabled.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional, inherited) | `string` | Optional icon that will be rendered before the label.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional, inherited) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional, inherited) | `string` | ID that will be attached to the DOM node.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) (inherited) | `TranslatableString` | Label that is shown to the user.<br><br>Inherited from [MenuItemBase](<index.html#t:MenuItemBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L71-L71>) | `"radio"` |  |

### [MenuItemHeader](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L92-L96>)

**Kind:** interface

```
import type { MenuItemHeader } from '@siemens/element-ng/menu';
```

```
interface MenuItemHeader
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L95-L95>) | `string` | The label of the header. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L93-L93>) | `"header"` |  |

### [MenuDivider](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L98-L100>)

**Kind:** interface

```
import type { MenuDivider } from '@siemens/element-ng/menu';
```

```
interface MenuDivider
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L99-L99>) | `"divider"` |  |

### [StatusType](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/status-type.model.ts#L7-L7>)

**Kind:** type alias

```
import type { StatusType } from '@siemens/element-ng/common';
```

```
type StatusType = 'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical'
```

### [SiWeatherWidgetForecastDay](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L91-L100>)

**Kind:** interface

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

A single day in the forecast block.

```
interface SiWeatherWidgetForecastDay
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [illustration](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L95-L95>) (optional) | `string \| SiWeatherIcon` | Weather illustration for the day. A string is shorthand for `{ src }`. |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L93-L93>) | `TranslatableString` | Translatable day label, e.g. `"Mon"`. |
| [maxTemperature](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L99-L99>) | `string \| number` | Maximum temperature, pre-formatted by the caller. |
| [minTemperature](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L97-L97>) | `string \| number` | Minimum temperature, pre-formatted by the caller. |

### [SiWeatherWidgetForecastColumn](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L76-L86>)

**Kind:** interface

```
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.

```
interface SiWeatherWidgetForecastColumn
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L80-L80>) (optional) | `string` | element-icons icon name shown next to each row value. |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L78-L78>) (optional) | `TranslatableString` | Translatable column label, used as `aria-label` for the column. |
| [values](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/widgets/si-weather-widget/si-weather-widget.types.ts#L85-L85>) | `readonly (string \| number \| undefined)[]` | Per-day values, aligned by index with [SiWeatherWidgetForecast.days](<index.html#t:SiWeatherWidgetForecast.days>). Missing entries are rendered as empty cells. |

### [MenuItemBase](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L8-L26>)

**Kind:** interface

```
import type { MenuItemBase } from '@siemens/element-ng/menu';
```

```
interface MenuItemBase
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L21-L21>) (optional) | `string \| number` | Badge that is rendered after the label. |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L23-L23>) (optional) | `string` | Color of the badge (not iconBadge). |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L25-L25>) (optional) | `boolean` | Whether the menu item id disabled. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L14-L14>) (optional) | `string` | Optional icon that will be rendered before the label. |
| [iconBadge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L19-L19>) (optional) | `string \| number \| boolean` | Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered. |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L10-L10>) (optional) | `string` | ID that will be attached to the DOM node. |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-model.ts#L12-L12>) | `TranslatableString` | Label that is shown to the user. |
