# Dashboard

A **dashboard** is a visual representation of different data and information sources, that provides a summarized overview of multiple key performance indicators such as metrics, trends and other insights.

## Usage

The purpose of a dashboard is helping users to monitor, measure and analyze relevant data from different sources in a *at-a-glance* fashion.

They provide a quick and easy way to track performance metrics and identify areas for improvement, enabling users to make informed decisions based on real-time data.

![Dashboard](<../images/dashboard.png>)

**Dashboards vary significantly depending on the context in which they are used.** Before starting to design a dashboard, it is important to understand the purpose and the goals it aims to achieve. This will help to identify the key metrics and information that need to be displayed.

### Best practices

- Keep it simple. Avoid clutter caused by too much information or showing irrelevant metrics.
- Choose the right visualizations to represent the data. See the [charts](<https://element.siemens.io/components/charts/>) chapter.
- Use color to draw attention to important information. Avoid using too many different colors or using them in a way that is visually distracting.
- Use real-time data to ensure that the dashboard is up-to-date and provides the most recent information.
- Use consistent units throughout the dashboard to ensure that the data is easily comparable among itself.
- Use either *global* (affecting all widgets) or *local* (affecting only one widget) filters, not both simultaneously.

## Design

### Elements

![Dashboard elements](<../images/dashboard-elements.png>)

1. **Title (optional):** A brief and descriptive name of the whole dashboard.
2. **Dashboard options (optional):** Is the area located just bellow the title that contains filters, menus and other interactive elements that allow users to perform actions affecting the whole dashboard.
3. **Content area:** Is the main area of the dashboard where the actual data, charts, graphs and other visualizations are displayed.

### Progressive disclosure

Avoid overwhelming users with all the information being display at once by revealing it gradually and as needed. When dealing with large amount of content, it is better to display a summary or overview of the data with the option to expand or drill down to see further details.

![Dashboard expand](<../images/dashboard-expand.png>)

### Layout

- Place the most important items in areas where the viewer's eye will naturally look first. In left-to-right/LTR languages, this is typically the top-left corner of the screen, followed by the center of the screen.
- Place related items close to each other. This helps to create visual groupings and organizes information for the viewer.
- Charts should be sized and proportioned based on their importance and relevance.

See the [flexible dashboards](<https://element.siemens.io/components/dashboards/flexible-dashboards/>) chapter for dashboards with user customizable content.

## Code

The `SiDashboardModule` consists of a `SiDashboardComponent` and the `SiDashboardCardComponent`. The `SiDashboardCardComponent` extends the `SiCardComponent` and adds expand and restore functionality. The dashboard works with content-projection slots to configure the layout, e.g. a Bootstrap grid.

The module has its own entry point to reduce the overall bundle size.

### Usage

```
import {
  SiDashboardCardComponent,
  SiDashboardComponent
} from '@siemens/element-ng/dashboard';

@Component({
  :
  imports: [
    :
    SiDashboardCardComponent,
    SiDashboardComponent,
    :
  ]
})
```

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { DecimalPipe, NgTemplateOutlet } from '@angular/common';
import { Component, inject } from '@angular/core';
import { RouterLink } from '@angular/router';
import { SiChartCartesianComponent } from '@siemens/charts-ng/cartesian';
import { SiChartCircleComponent } from '@siemens/charts-ng/circle';
import { AxisType } from '@siemens/charts-ng/common';
import { SiChartGaugeComponent } from '@siemens/charts-ng/gauge';
import { SiChartProgressBarComponent } from '@siemens/charts-ng/progress-bar';
import {
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective,
  SiLaunchpadFactoryComponent
} from '@siemens/element-ng/application-header';
import {
  ContentActionBarMainItem,
  SiContentActionBarComponent
} from '@siemens/element-ng/content-action-bar';
import {
  SiDashboardCardComponent,
  SiDashboardComponent,
  SiValueWidgetComponent
} from '@siemens/element-ng/dashboard';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownItemComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { SiIconComponent } from '@siemens/element-ng/icon';
import { Link } from '@siemens/element-ng/link';
import { NavbarVerticalItem, SiNavbarVerticalComponent } from '@siemens/element-ng/navbar-vertical';
import { SiResizeObserverDirective } from '@siemens/element-ng/resize-observer';
import { LOG_EVENT } from '@siemens/live-preview';

@Component({
  selector: 'app-sample',
  imports: [
    DecimalPipe,
    NgTemplateOutlet,
    SiChartCartesianComponent,
    SiChartCircleComponent,
    SiChartGaugeComponent,
    SiChartProgressBarComponent,
    SiContentActionBarComponent,
    SiDashboardCardComponent,
    SiDashboardComponent,
    SiIconComponent,
    SiHeaderActionsDirective,
    SiHeaderBrandDirective,
    SiNavbarVerticalComponent,
    SiResizeObserverDirective,
    SiValueWidgetComponent,
    SiApplicationHeaderComponent,
    RouterLink,
    SiHeaderActionItemComponent,
    SiHeaderDropdownComponent,
    SiHeaderDropdownItemComponent,
    SiHeaderDropdownTriggerDirective,
    SiHeaderAccountItemComponent,
    SiLaunchpadFactoryComponent,
    SiHeaderLogoDirective
  ],
  templateUrl: './si-dashboard-layout.html'
})
export class SampleComponent {
  logEvent = inject(LOG_EVENT);

  menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      children: [
        { type: 'router-link', label: 'Sub Item', routerLink: 'subItem' },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      children: [
        { type: 'router-link', label: 'Sub Item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub Item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub Item 6', routerLink: 'subItem6' }
      ]
    },
    { type: 'header', label: 'All the rest' },
    { type: 'router-link', label: 'Energy & Operations', routerLink: 'energy' },
    { type: 'router-link', label: 'Test Coverage', routerLink: 'coverage' }
  ];

  items = [
    { title: 'All days', value: null },
    { title: 'Mon', value: 0 },
    { title: 'Tue', value: 1 },
    { title: 'Wed', value: 2 },
    { title: 'Thu', value: 3 },
    { title: 'Fri', value: 4 },
    { title: 'Sat', value: 5 },
    { title: 'Sun', value: 6 }
  ];
  linesAdded = [50, 25, 10, 43, 58, 80, 0];
  linesRemoved = [20, 10, 15, 29, 47, 0, 100];
  doorAccessEvents = [300, 400, 100, 33, 50, 500, 999];
  doorAccessEventsfiltered = this.doorAccessEvents;
  private readonly days = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
  getSeries = (
    type: 'bar',
    name: string,
    data: number[]
  ): { type: 'bar'; name: string; data: number[] } => ({ type, name, data });
  getDay = (event: number): string => this.days[this.doorAccessEvents.indexOf(event)];
  series = [
    this.getSeries('bar', 'lines added', this.linesAdded),
    this.getSeries('bar', 'lines removed', this.linesRemoved)
  ];
  categories = {
    type: 'category' as AxisType,
    data: this.days
  };
  linesAddedWeek = this.series[0].data.reduce((a: number, b: number) => a + b, 0);
  linesRemovedWeek = this.series[1].data.reduce((a: number, b: number) => a + b, 0);
  doorEventsWeek = this.doorAccessEvents.reduce((a: number, b: number) => a + b, 0);
  pageActions: ContentActionBarMainItem[] = [
    { type: 'action', label: 'Share', action: () => this.logEvent('Share clicked') },
    { type: 'action', label: 'Export', action: () => this.logEvent('Export clicked') }
  ];
  primaryActions: ContentActionBarMainItem[] = [
    { type: 'action', label: 'Settings', action: () => this.logEvent('Settings clicked') },
    { type: 'action', label: 'Copy', action: () => this.logEvent('Copy clicked') },
    { type: 'action', label: 'Delete', action: () => this.logEvent('Delete clicked') }
  ];
  simplActionLink: Link = {
    title: 'Do something',
    action: () => alert('Hello Element!'),
    tooltip: 'APP.CLAIM'
  };

  onChange(event: Event): void {
    const value = (event.target as HTMLSelectElement).value;
    if (value !== 'null') {
      this.doorAccessEventsfiltered = [this.doorAccessEvents[parseInt(value, 10)]];
      this.series = [
        this.getSeries('bar', 'lines added', [this.linesAdded[parseInt(value, 10)]]),
        this.getSeries('bar', 'lines removed', [this.linesRemoved[parseInt(value, 10)]])
      ];
      this.categories = {
        type: 'category',
        data: [this.days[parseInt(value, 10)]]
      };
    } else {
      this.series = [
        this.getSeries('bar', 'lines added', this.linesAdded),
        this.getSeries('bar', 'lines removed', this.linesRemoved)
      ];
      this.series[1].data = this.linesRemoved;
      this.categories.data = this.days;
      this.doorAccessEventsfiltered = this.doorAccessEvents;
    }
    this.doorEventsWeek = this.doorAccessEventsfiltered.reduce((a: number, b: number) => a + b, 0);
    this.linesAddedWeek = this.series[0].data.reduce((a: number, b: number) => a + b, 0);
    this.linesRemovedWeek = this.series[1].data.reduce((a: number, b: number) => a + b, 0);
  }
}
```

Template:

```html
<div class="has-navbar-fixed-top si-layout-fixed-height h-100">
  <si-application-header [launchpad]="launchpad">
    <si-header-brand>
      <a siHeaderLogo routerLink="/" class="d-none d-md-flex"></a>
      <h1 class="application-name">Smart Buildings</h1>
    </si-header-brand>

    <si-header-actions>
      <button
        type="button"
        si-header-action-item
        icon="element-api"
        [siHeaderDropdownTriggerFor]="apiActions"
      >
        API
      </button>
      <ng-template #apiActions>
        <si-header-dropdown>
          <button type="button" si-header-dropdown-item (click)="dashboard.expand(card)">
            Expand
          </button>
          <button type="button" si-header-dropdown-item (click)="dashboard.restore()">
            Restore
          </button>
        </si-header-dropdown>
      </ng-template>

      <button
        si-header-account-item
        type="button"
        name="Jane Smith"
        [siHeaderDropdownTriggerFor]="account"
      >
      </button>
      <ng-template #account>
        <si-header-dropdown>
          <div class="mx-5">
            <div class="si-h5">Jane Smith</div>
            <div>jane.smith&#64;siemens.com</div>
            <div class="d-flex align-items-center text-secondary mt-2">Siemens AG</div>
          </div>
        </si-header-dropdown>
      </ng-template>
    </si-header-actions>
  </si-application-header>
  <ng-template #launchpad>
    <si-launchpad-factory [apps]="[]" />
  </ng-template>

  <si-navbar-vertical
    navbarCollapseButtonText="collapse"
    navbarExpandButtonText="expand"
    [items]="menuItems"
    [textOnly]="true"
  >
    <si-dashboard #dashboard [sticky]="true">
      <div class="si-layout-header" header>
        <h2 class="si-layout-title si-layout-top-element">Dashboard</h2>
        <p class="si-layout-subtitle">Weekly overview of team activity and building access</p>
        <si-content-action-bar
          class="si-layout-actions"
          viewType="expanded"
          [primaryActions]="pageActions"
        />
      </div>
      <ng-container menubar>
        <div class="d-flex">
          <select
            class="form-select d-inline w-25"
            aria-label="selection of day"
            (change)="onChange($event)"
          >
            @for (item of items; track $index) {
              <option [value]="item.value">{{ item.title }}</option>
            }
          </select>
          <button type="button" class="btn btn-secondary ms-auto">Text</button>
        </div>
      </ng-container>
      <ng-container dashboard>
        <div class="row">
          <div class="col-sm-6 col-lg-4 mb-6">
            <si-dashboard-card
              #card
              heading="LOC added/removed this week"
              [enableExpandInteraction]="true"
            >
              <ng-container
                *ngTemplateOutlet="
                  card.isExpanded() ? expanded : notExpanded;
                  context: { type: 'loc' }
                "
                body
              />
            </si-dashboard-card>
          </div>
          <div class="col-sm-6 col-lg-4 mb-6">
            <si-dashboard-card
              heading="Today's motivation level (without global filter)"
              [enableExpandInteraction]="true"
              [showMenubar]="false"
            >
              <ng-container *ngTemplateOutlet="gauge" body />
            </si-dashboard-card>
          </div>
          <div class="col-lg-4 mb-6">
            <si-dashboard-card heading="Lorem ipsum">
              <ng-container *ngTemplateOutlet="cardTemplate" body />
            </si-dashboard-card>
          </div>
        </div>
        <div class="row">
          <div class="col-lg-6 mb-6">
            <si-dashboard-card
              #dooreventscard
              heading="Door access events this week"
              [enableExpandInteraction]="true"
            >
              <ng-container
                *ngTemplateOutlet="
                  dooreventscard.isExpanded() ? expanded : notExpanded;
                  context: { type: 'door' }
                "
                body
              />
            </si-dashboard-card>
          </div>
          <div class="col-lg-6 mb-6">
            <si-dashboard-card
              heading="Reasons to remember the name"
              [enableExpandInteraction]="true"
            >
              <ng-container *ngTemplateOutlet="circlechart" body />
            </si-dashboard-card>
          </div>
        </div>

        <div class="row">
          <div class="col-lg-8 mb-6">
            <si-dashboard-card heading="Daily requirements at work">
              <ng-container *ngTemplateOutlet="progressChart" body />
            </si-dashboard-card>
          </div>
          <div class="col-lg-4 mb-6">
            <si-value-widget
              heading="Contributions"
              value="43"
              unit="bits"
              icon="element-checked"
              description="Valuable bits commited to main."
              [primaryActions]="primaryActions"
              [link]="simplActionLink"
            />
          </div>
        </div>
      </ng-container>
    </si-dashboard>
  </si-navbar-vertical>
</div>

<ng-template #notExpanded let-type="type">
  <div class="card-body card-text d-flex align-items-center justify-content-around">
    @switch (type) {
      @case ('door') {
        <p class="si-display-xl text-center my-10">{{ doorEventsWeek | number }}</p>
      }
      @default {
        <div class="text-center">
          <p class="si-display-lg"
            >{{ linesAddedWeek }}<si-icon class="status-success si-display-lg" icon="element-plus"
          /></p>
          <p class="si-display-lg"
            >{{ linesRemovedWeek
            }}<si-icon class="status-danger si-display-lg" icon="element-minus"
          /></p>
        </div>
      }
    }
  </div>
</ng-template>

<ng-template #expanded let-type="type">
  <p class="card-body card-text" style="height: 250px">
    @switch (type) {
      @case ('door') {
        <table class="table">
          <thead>
            <tr>
              <th scope="col">Day</th>
              <th scope="col">Door access events</th>
            </tr>
          </thead>
          <tbody>
            @for (event of doorAccessEventsfiltered; track event) {
              <tr>
                <td>{{ getDay(event) }}</td>
                <td>{{ event }}</td>
              </tr>
            }
          </tbody>
        </table>
      }
      @default {
        <si-chart-cartesian
          #chart
          class="h-100"
          title=""
          [xAxis]="categories"
          [yAxis]="{ type: 'value' }"
          [series]="series"
          (siResizeObserver)="chart.resize()"
        />
      }
    }
  </p>
</ng-template>

<ng-template #cardTemplate>
  <p class="card-body card-text">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc at augue ornare, suscipit orci a,
    dapibus enim. Duis nibh diam, consequat vitae dolor eu, consectetur hendrerit nulla. Nam
    consectetur consequat suscipit. Nam consectetur pulvinar risus, nec auctor lorem. Sed eget magna
    quis turpis finibus rhoncus.
  </p>
</ng-template>

<ng-template #gauge>
  <div class="card-body card-text" style="height: 250px">
    <si-chart-gauge
      #chart
      class="background-1 h-100"
      title=""
      [minValue]="0"
      [maxValue]="100"
      [value]="99"
      [splitSteps]="10"
      (siResizeObserver)="chart.resize()"
    />
  </div>
</ng-template>

<ng-template #progressChart>
  <div class="card-body card-text" style="height: 250px">
    <si-chart-progress-bar
      #chart
      class="background-1 h-100"
      title=""
      [series]="[
        { name: 'Coffee', percent: 60 },
        { name: 'Water', percent: 30 },
        { name: 'Food', percent: 20 },
        { name: 'Beer', percent: 100 },
        { name: 'Motivation', percent: 99 }
      ]"
      (siResizeObserver)="chart.resize()"
    />
  </div>
</ng-template>

<ng-template #circlechart>
  <div class="card-body" style="height: 250px">
    <si-chart-circle
      #chart
      class="background-1 h-100"
      title=""
      [series]="[
        {
          name: 'Level',
          radius: ['0', '60%'],
          data: [
            { value: 10, name: 'Luck' },
            { value: 20, name: 'Skill' },
            { value: 15, name: 'Power' },
            { value: 5, name: 'Pleasure' },
            { value: 50, name: 'Pain' }
          ]
        }
      ]"
      (siResizeObserver)="chart.resize()"
    />
  </div>
</ng-template>
```

### Custom header

The `heading` input renders a plain page title. To show additional context like a description or page actions, project a custom header using the `header` attribute, as shown in the example above. The custom header replaces the default heading.

Build the custom header according to the [page header](<https://element.siemens.io/fundamentals/layouts/header/>) guidelines using the `.si-layout-header` CSS classes. Add the `.si-layout-top-element` CSS class to the title to reserve space for the vertical navigation and the side panel in the mobile viewport.

```
<si-dashboard>
  <div class="si-layout-header" header>
    <h2 class="si-layout-title si-layout-top-element">Dashboard</h2>
    <p class="si-layout-subtitle">Description</p>
    <si-content-action-bar
      class="si-layout-actions"
      viewType="expanded"
      [primaryActions]="pageActions"
    />
  </div>
  <ng-container menubar>...</ng-container>
  <ng-container dashboard>...</ng-container>
</si-dashboard>
```

### [SiDashboardComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L49-L292>)

**Kind:** component

**Selector:** `si-dashboard`

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

```
component SiDashboardComponent implements OnChanges, AfterViewInit
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [enableExpandInteractions](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L64-L64>) | `boolean` | `false` | Opt-in to enable expand interaction for all cards. |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L57-L57>) | `TranslatableString \| undefined` |  | Heading for the dashboard page.<br><br>To show a custom header instead, e.g. with a description or page actions, project it using the `header` attribute. The heading is ignored in that case. |
| [hideMenubar](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L78-L78>) | `boolean` | `false` | Option to hide the menu bar. |
| [sticky](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L71-L71>) | `boolean` | `true` | Option to turn off the sticky behavior of the heading and menu bar. |

#### Attributes and Methods

##### expand

[Source for expand](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L174-L199>)

Expands the provided card to full size in the dashboard.

```
expand(card: SiDashboardCardComponent): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [card](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L174-L174>) | `SiDashboardCardComponent` |  | • The card to be expanded. |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### isExpanded

[Source for isExpanded](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L85-L87>)

**Modifiers:** readonly

**Type:** `boolean`

**Default:** `false`

Is `true` if a card is expanded.

##### restore

[Source for restore](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard.component.ts#L204-L214>)

Restores the expanded card to it's previous position.

```
restore(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

### [SiDashboardCardComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L38-L211>)

**Kind:** component

**Selector:** `si-dashboard-card`

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

```
component SiDashboardCardComponent extends SiCardComponent implements OnDestroy
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [actionBarTitle](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card.component.ts#L53-L53>) (inherited) | `TranslatableString` | `''` | Optional setting of html title attribute for the content action bar. Helpful for a11y when only one action is configured in expand mode.<br><br>Inherited from [SiCardComponent](<../../../api/siemens/element-ng/components/SiCardComponent/index.html#SiCardComponent>) |
| [actionBarViewType](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card.component.ts#L46-L46>) (inherited) | `ViewType` | `'collapsible'` | The view type of the content action bar of the card. Default is `collapsible` for dashboards. However, in some cases you might need to change to `expanded` or `mobile`.<br><br>Inherited from [SiCardComponent](<../../../api/siemens/element-ng/components/SiCardComponent/index.html#SiCardComponent>) |
| [actionParam](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card.component.ts#L38-L38>) (inherited) | `any` |  | A param that will be passed to the `action` in the primary/secondary actions. This allows to re-use the same primary/secondary action arrays across rows in a table.<br><br>Inherited from [SiCardComponent](<../../../api/siemens/element-ng/components/SiCardComponent/index.html#SiCardComponent>) |
| [enableExpandInteraction](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L64-L64>) | `boolean` | `false` | Option to enable and show the UI controls for card expand functionality. `Expand` and `restore` action items will be added to the content action bar. The expand resizing has to be implemented by the container of the card. |
| [expandText](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L56-L56>) | `TranslatableString` | `` $localize`:@@SI_DASHBOARD.EXPAND:Expand` `` | Description of expand button &amp; action. |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L20-L20>) (inherited) | `TranslatableString \| undefined` |  | Card header text.<br><br>Inherited from `SiCardBaseDirective` |
| [imgAlt](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L32-L32>) (inherited) | `TranslatableString \| undefined` |  | Alt text for a provided image.<br><br>Inherited from `SiCardBaseDirective` |
| [imgDir](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L38-L38>) (inherited) | `"horizontal" \| "vertical" \| undefined` | `'vertical'` | Defines if an image is placed on top or start (left) of the card.<br><br>Inherited from `SiCardBaseDirective` |
| [imgObjectFit](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L44-L46>) (inherited) | `"fill" \| "contain" \| "cover" \| "none" \| "scale-down" \| undefined` | `'scale-down'` | Sets the image [object-fit](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit>) CSS property.<br><br>Inherited from `SiCardBaseDirective` |
| [imgObjectPosition](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L50-L50>) (inherited) | `string \| undefined` |  | Sets the image [object-position](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-position>) CSS property.<br><br>Inherited from `SiCardBaseDirective` |
| [imgSrc](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L28-L28>) (inherited) | `string \| undefined` |  | Image source for the card.<br><br>Inherited from `SiCardBaseDirective` |
| [primaryActions](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card.component.ts#L26-L26>) (inherited) | `(MenuItem \| ContentActionBarMainItem)[]` | `[]` | Input list of primary action items. Supports up to **4** actions and omits additional ones.<br><br>Inherited from [SiCardComponent](<../../../api/siemens/element-ng/components/SiCardComponent/index.html#SiCardComponent>) |
| [restoreText](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L47-L47>) | `TranslatableString` | `` $localize`:@@SI_DASHBOARD.RESTORE:Restore` `` | Description of cancel button &amp; action. |
| [secondaryActions](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card.component.ts#L32-L32>) (inherited) | `(MenuItem \| MenuItem)[]` | `[]` | Input list of secondary action items.<br><br>Inherited from [SiCardComponent](<../../../api/siemens/element-ng/components/SiCardComponent/index.html#SiCardComponent>) |
| [showMenubar](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L71-L71>) | `boolean` | `true` | Used in combination with si-dashboard to show filters when a card is expanded or not. |
| [subHeading](<https://github.com/siemens/element/blob/main/projects/element-ng/card/si-card-base.directive.ts#L24-L24>) (inherited) | `TranslatableString \| undefined` |  | Card secondary header text.<br><br>Inherited from `SiCardBaseDirective` |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [expandChange](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L75-L75>) | `boolean` | Emitter for size state change |

#### Attributes and Methods

##### displayContentActionBar

[Source for displayContentActionBar](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L93-L95>)

**Modifiers:** readonly

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

**Default:** `...`

Returns `true` when primary or secondary actions are set.

Inherited from [SiCardComponent](<../../../api/siemens/element-ng/components/SiCardComponent/index.html#SiCardComponent>)

##### enableExpandInteractionComputed

[Source for enableExpandInteractionComputed](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L87-L89>)

**Modifiers:** readonly

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

**Default:** `...`

##### expand

[Source for expand](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L196-L198>)

Expand the dashboard card.

```
expand(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### isExpanded

[Source for isExpanded](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L82-L82>)

**Modifiers:** readonly

**Type:** `WritableSignal<boolean>`

**Default:** `false`

Whether the card is currently expanded.

##### restore

[Source for restore](<https://github.com/siemens/element/blob/main/projects/element-ng/dashboard/si-dashboard-card.component.ts#L203-L205>)

Restore the dashboard card to the original, non-expanded state.

```
restore(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

### Types Documentation

### [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/common/models/menu.model.ts#L19-L85>)

**Kind:** interface

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

The MenuItem is used to configure clickable items in menus. They support a name, link, icons and sub-menu items.

Deprecated: This interface should no longer be used. Use a corresponding alternative based on your use case:

• for [SiMenuFactoryComponent](<../../../api/siemens/element-ng/components/SiMenuFactoryComponent/index.html#SiMenuFactoryComponent>) use [@siemens/element-ng/menu\#MenuItem](<index.html#t:MenuItem--2>)

• for [SiContentActionBarComponent](<../../../api/siemens/element-ng/components/SiContentActionBarComponent/index.html#SiContentActionBarComponent>) use [@siemens/element-ng/menu\#MenuItem](<index.html#t:MenuItem--2>) and [ContentActionBarMainItem](<index.html#t:ContentActionBarMainItem>)

• for [SiNavbarVerticalComponent](<../../../api/siemens/element-ng/components/SiNavbarVerticalComponent/index.html#SiNavbarVerticalComponent>) use [NavbarVerticalItem](<../../../api/siemens/element-ng/types/NavbarVerticalItem/index.html#t:NavbarVerticalItem>)

• for [@siemens/dashboards-ng\#SiFlexibleDashboardComponent](<../../../api/siemens/dashboards-ng/components/SiFlexibleDashboardComponent/index.html#SiFlexibleDashboardComponent>) use [@siemens/dashboards-ng\#DashboardToolbarItem](<../../../api/siemens/dashboards-ng/types/DashboardToolbarItem/index.html#t:DashboardToolbarItem>)

```
interface MenuItem extends Link
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L42-L42>) (optional, inherited) | `string \| ((param?: any) => void \| any)` | A function that will be invoked when clicking on the menu item. When passed as a string, use together with SiLinkActionService to receive events. This is meant for repetitive things in lists/tables/etc.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L56-L56>) (optional) | `string \| number` | Defines the content of the optional badge. Should be a number or something like "100+". if undefined or empty string, no badge is displayed |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L60-L60>) (optional) | `string` | Defines the background color of the badge. Default is specific to Element flavour. |
| [badgeDot](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L68-L68>) (optional) | `boolean` | Show a dot badge without content? |
| [badgeStyle](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L64-L64>) (optional) | `"" \| "inline" \| "dot"` | Defines the badge style |
| [customContent](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L51-L51>) (optional) | `boolean` | Defines if custom content is chosen in account dropdown (otherwise accountItems are used) |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L50-L50>) (optional, inherited) | `boolean` | A boolean that lets the link know whether it is disabled or not.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [dropUpwards](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L84-L84>) (optional) | `boolean` | Whether the menu items sub-menu should open upwards instead of downwards. |
| [expanded](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L42-L42>) (optional) | `boolean` | If the menu item has children you can specify if they are visible or not. |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L22-L22>) (optional, inherited) | `string` | Defines a href URI that the menu item will be linked to. Will be used to set the href attribute of the a element. Will only be used if link and function is not set.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L27-L27>) (optional) | `string` | The web font icon class name (e.g. element-settings-outline). |
| [iconOnly](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L46-L46>) (optional) | `boolean` | Defines if only the icon is shown in the default navigation bar. |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L23-L23>) (optional) | `string` | An optional id to uniquely identify the menu item. |
| [image](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L32-L32>) (optional) | `string` | The value for an image src tag. Maybe a relative or absolute link to an jpg or gif image. |
| [isActive](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L46-L46>) (optional, inherited) | `boolean` | A boolean that lets the link know whether it is active or not. It is useful when action() is executed instead of link route.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [isHeading](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L80-L80>) (optional) | `boolean` | Whether the menu item should be displayed as a heading/title, will also disable links and actions. |
| [items](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L37-L37>) (optional) | `MenuItem[]` | A navigation bar item can have a sub-menu, if these items are set. They define the sub-menu content. |
| [link](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L32-L32>) (optional, inherited) | `string \| any[]` | Defines the link of the menu item within the application using the angular router link concept. Accepts an array of `any` as per \[routerLink API definition\][https://angular.dev/api/router/RouterLink](<https://angular.dev/api/router/RouterLink>).<br><br>Inherited from [Link](<index.html#t:Link>) |
| [navigationExtras](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L36-L36>) (optional, inherited) | `NavigationExtras` | The navigation extras provide additional routing options when using the router link.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [selectionState](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L72-L72>) (optional) | `"" \| "check" \| "radio"` | For single/multi choice items: the kind of icon to show. |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L27-L27>) (optional, inherited) | `string` | The target attribute specifies where to open the linked document. If no target is specified, the link will open in the current tab.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L12-L12>) (optional, inherited) | `TranslatableString` | The title of the menu item. Can be either the title to be displayed or the translation key.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [tooltip](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L17-L17>) (optional, inherited) | `TranslatableString` | The optional tooltip of the link. Can be either the text to be displayed or the translation key.<br><br>Inherited from [Link](<index.html#t:Link>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/menu.model.ts#L76-L76>) (optional) | `"check" \| "radio"` | Type to distinguish between check and radio menu items. Needs to be set for correct interaction and used for a11y. |

### [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
```

### [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
```

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

**Kind:** type alias

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

```
type ViewType = 'collapsible' | 'expanded' | 'mobile'
```

### [Link](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L8-L51>)

**Kind:** interface

```
import type { Link } from '@siemens/element-ng/link';
```

```
interface Link
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L42-L42>) (optional) | `string \| ((param?: any) => void \| any)` | A function that will be invoked when clicking on the menu item. When passed as a string, use together with SiLinkActionService to receive events. This is meant for repetitive things in lists/tables/etc. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L50-L50>) (optional) | `boolean` | A boolean that lets the link know whether it is disabled or not. |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L22-L22>) (optional) | `string` | Defines a href URI that the menu item will be linked to. Will be used to set the href attribute of the a element. Will only be used if link and function is not set. |
| [isActive](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L46-L46>) (optional) | `boolean` | A boolean that lets the link know whether it is active or not. It is useful when action() is executed instead of link route. |
| [link](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L32-L32>) (optional) | `string \| any[]` | Defines the link of the menu item within the application using the angular router link concept. Accepts an array of `any` as per \[routerLink API definition\][https://angular.dev/api/router/RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [navigationExtras](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L36-L36>) (optional) | `NavigationExtras` | The navigation extras provide additional routing options when using the router link. |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L27-L27>) (optional) | `string` | The target attribute specifies where to open the linked document. If no target is specified, the link will open in the current tab. |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L12-L12>) (optional) | `TranslatableString` | The title of the menu item. Can be either the title to be displayed or the translation key. |
| [tooltip](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L17-L17>) (optional) | `TranslatableString` | The optional tooltip of the link. Can be either the text to be displayed or the translation key. |

### [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"` |  |

### [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. |
