# Electron titlebar

This is a titlebar which is used in electron applications. The titlebar will be positioned above the primary navbar and provide forward/backward functionality as well as zoom and custom functions.

## Usage

### When to use

The electron-titlebar is mandatory when the application is running in electron The electron-titlebar should not be used in not electron applications

## Code

### Usage

```
import { SiElectrontitlebarComponent } from '@siemens/element-ng/electron-titlebar';

@Component({
  imports: [SiElectrontitlebarComponent, ...]
})
```

#### Example

##### Basic usage

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Location } from '@angular/common';
import { Component, inject } from '@angular/core';
import { runsInElectron, SiElectrontitlebarComponent } from '@siemens/element-ng/electron-titlebar';
import { MenuItem } from '@siemens/element-ng/menu';
import { LOG_EVENT } from '@siemens/live-preview';

@Component({
  selector: 'app-sample',
  imports: [SiElectrontitlebarComponent],
  templateUrl: './si-electron-titlebar.html'
})
export class SampleComponent {
  private _location = inject(Location);

  logEvent = inject(LOG_EVENT);
  // zoom levels of possible zoom % | index 5 = the default (100%)
  // private zoomLevels = [50, 67, 75, 80, 90, 100, 110, 125, 150, 175, 200, 250, 300];
  // private zoomLevel100 = 5;
  // private zoomLevelCurrent = 5;

  // to get the boolean if the application runs in electron or not use the import from above:
  runsInElectron = runsInElectron();

  goForward(): void {
    this._location.forward();
    this.logEvent('successfully browsed forward');
  }

  goBack(): void {
    this._location.back();
    this.logEvent('successfully browsed back');
  }

  onReload(): void {
    location.reload();
    this.logEvent('successfully reloaded the application');
  }

  zoomIn(): void {
    // get zoomLevelCurrent
    // and set zoomLevelCurrent + 1
    // setZoom(this.zoomLevels[this.zoomLevelCurrent])
    this.logEvent('successfully zoomed in');
  }

  zoomOut(): void {
    // get this.zoomLevelCurrent
    // and set this.zoomLevelCurrent -1
    // setZoom(this.zoomLevels[this.zoomLevelCurrent])
    this.logEvent('successfully zoomed out');
  }

  zoom100(): void {
    // this.zoomLevelCurrent = this.zoomLevel100;
    this.logEvent('successfully reseted the zoom');
  }

  items: MenuItem[] = [
    {
      type: 'action',
      label: 'Zoom in',
      icon: 'element-zoom-in',
      action: (): void => this.zoomIn()
    },
    {
      type: 'action',
      label: 'Zoom out',
      icon: 'element-zoom-out',
      action: (): void => this.zoomOut()
    },
    {
      type: 'action',
      label: 'Reset Zoom',
      icon: 'element-empty',
      action: (): void => this.zoom100()
    },
    { type: 'divider' },
    {
      type: 'action',
      label: 'Refresh',
      icon: 'element-refresh',
      action: (): void => this.onReload()
    }
  ];
}
```

Template:

```html
<!-- Only use this component if the application runs in electron
Use it like this: <si-electron-titlebar *ngIf="runsInElectron" -->

<si-electron-titlebar
  appTitle="My Application"
  [canGoBack]="true"
  [canGoForward]="false"
  [hasFocus]="true"
  [menuItems]="items"
  (forward)="goForward()"
  (back)="goBack()"
/>
```

##### Full layout example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { CdkPortal, PortalModule } from '@angular/cdk/portal';
import { Component, inject, OnDestroy, viewChild } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterLink } from '@angular/router';
import { SiAccordionComponent, SiCollapsiblePanelComponent } from '@siemens/element-ng/accordion';
import {
  App,
  SiAccountDetailsComponent,
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective,
  SiLaunchpadFactoryComponent
} from '@siemens/element-ng/application-header';
import { SiCardComponent } from '@siemens/element-ng/card';
import { SiElectrontitlebarComponent } from '@siemens/element-ng/electron-titlebar';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { SiIconComponent } from '@siemens/element-ng/icon';
import { MenuItem } from '@siemens/element-ng/menu';
import { NavbarVerticalItem, SiNavbarVerticalComponent } from '@siemens/element-ng/navbar-vertical';
import {
  SiSidePanelComponent,
  SiSidePanelContentComponent,
  SiSidePanelService
} from '@siemens/element-ng/side-panel';
import { SiStatusBarModule, StatusBarItem } from '@siemens/element-ng/status-bar';
import { LOG_EVENT } from '@siemens/live-preview';

@Component({
  selector: 'app-sample',
  imports: [
    SiStatusBarModule,
    SiCardComponent,
    SiNavbarVerticalComponent,
    SiSidePanelComponent,
    SiSidePanelContentComponent,
    SiIconComponent,
    SiAccordionComponent,
    SiCollapsiblePanelComponent,
    SiElectrontitlebarComponent,
    PortalModule,
    RouterLink,
    SiAccountDetailsComponent,
    SiApplicationHeaderComponent,
    SiHeaderAccountItemComponent,
    SiHeaderActionItemComponent,
    SiHeaderActionsDirective,
    SiHeaderBrandDirective,
    SiHeaderDropdownComponent,
    SiHeaderDropdownTriggerDirective,
    SiLaunchpadFactoryComponent,
    SiHeaderLogoDirective,
    FormsModule
  ],
  templateUrl: './si-fixed-height-layout-side-panel.html'
})
export class SampleComponent implements OnDestroy {
  // the real function is injected by the previewer
  logEvent = inject(LOG_EVENT);

  titlebarItems: MenuItem[] = [
    {
      type: 'action',
      label: 'Zoom in',
      icon: 'element-zoom-in',
      action: () => this.logEvent('zoom in')
    },
    {
      type: 'action',
      label: 'Zoom out',
      icon: 'element-zoom-out',
      action: () => this.logEvent('zoom out')
    },
    {
      type: 'action',
      label: 'Reset Zoom',
      icon: 'element-empty',
      action: () => this.logEvent('reset zoom')
    },
    {
      type: 'divider'
    },
    {
      type: 'action',
      label: 'Refresh',
      icon: 'element-refresh',
      action: () => this.logEvent('refresh')
    }
  ];

  readonly helpPanel = viewChild.required('helpPanel', { read: CdkPortal });
  readonly layoutPanel = viewChild.required('layoutPanel', { read: CdkPortal });

  appItems: App[] = [
    {
      name: 'Assets',
      iconUrl: './assets/app-icons/assets.svg',
      href: '.'
    },
    {
      name: 'Fischbach',
      iconUrl: './assets/app-icons/fischbach.svg',
      favorite: true,
      href: '.'
    },
    {
      name: 'Rocket',
      iconUrl: './assets/app-icons/rocket.svg',
      href: '.'
    },
    {
      name: 'Statistics',
      iconUrl: './assets/app-icons/statistics.svg',
      href: '.'
    }
  ];

  menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      icon: 'element-home',
      children: [
        {
          type: 'router-link',
          label: 'Sub Item',
          routerLink: 'subItem',
          badge: 4,
          badgeColor: 'warning'
        },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      icon: 'element-document',
      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: 'router-link',
      label: 'Energy & Sustainability',
      icon: 'element-trend',
      routerLink: 'energy'
    },
    {
      type: 'router-link',
      label: 'Test Coverage',
      icon: 'element-diagnostic',
      routerLink: 'coverage'
    }
  ];

  statusItems: StatusBarItem[] = [
    { title: 'Emergency', status: 'danger', value: 4, action: item => this.logEvent(item) },
    { title: 'Life safety', status: 'danger', value: 0, action: item => this.logEvent(item) },
    { title: 'Security', status: 'danger', value: 0 },
    { title: 'Supervisory', status: 'danger', value: 0 },
    { title: 'Trouble', status: 'warning', value: 42, action: item => this.logEvent(item) },
    { title: 'Success', status: 'success', value: 200, action: item => this.logEvent(item) }
  ];

  statusBarCompact: 'large' | 'compact' = 'large';

  primaryActions = [{ title: 'Toggle panel', action: () => this.sidePanelService.open() }];

  shouldBlink = !navigator.webdriver;

  private sidePanelService = inject(SiSidePanelService);

  ngOnDestroy(): void {
    this.sidePanelService.hideTemporaryContent();
  }

  showHelp(): void {
    this.sidePanelService.showTemporaryContent(this.helpPanel());
  }

  showLayout(): void {
    this.sidePanelService.showTemporaryContent(this.layoutPanel());
  }
}
```

Template:

```html
<div class="has-navbar-fixed-top si-layout-fixed-height h-100 in-electron">
  <si-electron-titlebar
    appTitle="My Application"
    [canGoBack]="true"
    [canGoForward]="false"
    [menuItems]="titlebarItems"
  />

  <si-application-header [launchpad]="launchpad">
    <si-header-brand>
      <a siHeaderLogo routerLink="/" class="d-none d-md-flex"></a>
      <h1 class="application-name">Application name</h1>
    </si-header-brand>

    <si-header-actions>
      <button
        type="button"
        si-header-action-item
        icon="element-layout-vertical-filled"
        (click)="showLayout()"
      >
        Layout
      </button>
      <button type="button" si-header-action-item icon="element-help" (click)="showHelp()">
        Help
      </button>

      <button
        si-header-account-item
        type="button"
        name="Jane Smith"
        [siHeaderDropdownTriggerFor]="account"
      >
      </button>
      <ng-template #account>
        <si-header-dropdown>
          <si-account-details
            name="Jane Smith"
            email="jane.smith@example.org"
            company="ExampleOrg"
          />
        </si-header-dropdown>
      </ng-template>
    </si-header-actions>

    <ng-template #launchpad>
      <si-launchpad-factory [apps]="appItems" />
    </ng-template>
  </si-application-header>
  <si-navbar-vertical
    navbarCollapseButtonText="collapse"
    navbarExpandButtonText="expand"
    [items]="menuItems"
  >
    <si-side-panel mode="scroll" [collapsible]="true">
      <div class="si-layout-fixed-height mb-6 si-layout-main-padding">
        <si-status-bar
          class="si-layout-top-element si-layout-status"
          [items]="statusItems"
          [blink]="shouldBlink"
          [compact]="statusBarCompact === 'compact'"
        />

        <div class="si-layout-header">
          <h2 class="si-layout-title">Here is a title</h2>
        </div>

        <si-card
          heading="A nice list of things"
          class="si-layout-fixed-height"
          [primaryActions]="primaryActions"
        >
          <ul class="list list-divider overflow-auto" tabindex="0" body>
            <li class="list-item">
              <si-icon icon="element-door" class="list-item-indicator icon" />
              <span class="list-item-title">Use the content action bar to toggle side panel</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-lock" class="list-item-indicator icon" />
              <span class="list-item-title">Dapibus ac facilisis in</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-cooling" class="list-item-indicator icon" />
              <span class="list-item-title">Porta ac consectetur ac</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-user" class="list-item-indicator icon" />
              <span class="list-item-title">Vestibulum at eros</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-door" class="list-item-indicator icon" />
              <span class="list-item-title">Cras justo odio</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-lock" class="list-item-indicator icon" />
              <span class="list-item-title">Dapibus ac facilisis in</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-cooling" class="list-item-indicator icon" />
              <span class="list-item-title">Porta ac consectetur ac</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-user" class="list-item-indicator icon" />
              <span class="list-item-title">Vestibulum at eros</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-door" class="list-item-indicator icon" />
              <span class="list-item-title">Cras justo odio</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-lock" class="list-item-indicator icon" />
              <span class="list-item-title">Dapibus ac facilisis in</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-cooling" class="list-item-indicator icon" />
              <span class="list-item-title">Porta ac consectetur ac</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-user" class="list-item-indicator icon" />
              <span class="list-item-title">Vestibulum at eros</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-door" class="list-item-indicator icon" />
              <span class="list-item-title">Cras justo odio</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-lock" class="list-item-indicator icon" />
              <span class="list-item-title">Dapibus ac facilisis in</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-cooling" class="list-item-indicator icon" />
              <span class="list-item-title">Porta ac consectetur ac</span>
            </li>
            <li class="list-item">
              <si-icon icon="element-user" class="list-item-indicator icon" />
              <span class="list-item-title">Vestibulum at eros</span>
            </li>
          </ul>
        </si-card>
      </div>

      <si-side-panel-content heading="Cooling coil" [searchable]="true">
        <si-accordion [fullHeight]="true">
          <si-collapsible-panel
            heading="Properties"
            icon="element-settings"
            contentCssClasses="p-6"
          >
            And here we have some content
          </si-collapsible-panel>
          <si-collapsible-panel heading="Documents" icon="element-document" contentCssClasses="p-6">
            And this is the content
          </si-collapsible-panel>
          <si-collapsible-panel heading="Graphics" icon="element-image" contentCssClasses="p-6">
            Nothing to see here
          </si-collapsible-panel>
        </si-accordion>
      </si-side-panel-content>
    </si-side-panel>
  </si-navbar-vertical>
</div>

<ng-template #helpPanel cdkPortal>
  <si-side-panel-content heading="Help">
    <div class="p-6">Help yourself</div>
  </si-side-panel-content>
</ng-template>

<ng-template #layoutPanel cdkPortal>
  <si-side-panel-content heading="Layout">
    <div class="p-6">
      <p class="small">Status bar height</p>
      <div class="btn-group" role="group" aria-label="Status bar height">
        <input
          id="compact"
          type="radio"
          class="btn-check"
          value="compact"
          [(ngModel)]="statusBarCompact"
        />
        <label for="compact" class="btn btn-icon btn-lg" aria-label="compact">
          <i aria-hidden="true" class="icon-lg element-layout-statusbar-small"></i>
        </label>
        <input
          id="large"
          type="radio"
          class="btn-check"
          value="large"
          [(ngModel)]="statusBarCompact"
        />
        <label for="large" class="btn btn-icon btn-lg" aria-label="large">
          <i aria-hidden="true" class="icon-lg element-layout-statusbar-large"></i>
        </label>
      </div>

      <p class="small mt-5">Pane layout</p>
      <div class="btn-group" role="group" aria-label="Pane layout">
        <input id="pane-1" type="radio" class="btn-check" name="paneLayout" value="pane1" />
        <label for="pane-1" class="layout-button btn btn-lg" aria-label="pane 1">
          <i aria-hidden="true" class="icon-lg element-layout-pane-1"></i>
        </label>
        <input id="pane-2" type="radio" class="btn-check" name="paneLayout" value="pane2" />
        <label for="pane-2" class="layout-button btn btn-lg" aria-label="pane 2">
          <i aria-hidden="true" class="icon-lg element-layout-pane-2"></i>
        </label>
        <input id="pane-4" type="radio" class="btn-check" name="paneLayout" value="pane4" />
        <label for="pane-4" class="layout-button btn btn-lg" aria-label="pane 4">
          <i aria-hidden="true" class="icon-lg element-layout-pane-4"></i>
        </label>
      </div>
    </div>
  </si-side-panel-content>
</ng-template>

<style>
  .layout-button {
    width: 3rem !important;
    min-width: 0 !important;
    font-size: 3rem;
    padding: 0;
    color: var(--si-sys-color-text-primary);
  }
</style>
```

### Correct rendering

The titlebar should be aligned on top of all components. But when adding the `si-electron-titlebar` to your application, it will no be aligned above every component by default. Instead it will be hidden behind an overlapping component e.g. the `si-navbar-primary`.

In order for correct rendering and padding with the titlebar, you should add the `in-electron` CSS class to the `body` element. But this should only happen if the applications runs in `electron`. For this we also defined a helper function:

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

Apply the defined `in-electron` class as follows, in the top level component (usually `app.component.ts`):

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

constructor() {
  if (runsInElectron()) {
    document.documentElement.classList.add('in-electron');
  }
}
```

Following components are affected when using the `si-electron-titlebar`:

- When the `div` with the `class="si-layout-main-padding"` is in use
- [si-application-header](<https://element.siemens.io/components/layout-navigation/application-header/>)
- [si-navbar-vertical](<https://element.siemens.io/components/layout-navigation/vertical-navigation/>)
- [si-side-panel](<https://element.siemens.io/components/layout-navigation/side-panel/>)
- [si-landing-page](<https://element.siemens.io/components/pages/landing-page/>)

### Implement window control overlay with caption buttons

In order to get the `close`, `minimize` and `maximize` buttons from the operating system in your Electron application, please have a look at the [Electron caption buttons guide](<https://www.electronjs.org/de/docs/latest/tutorial/window-customization#window-controls-overlay-macos-windows>).

### [SiElectrontitlebarComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L20-L96>)

**Kind:** component

**Selector:** `si-electron-titlebar`

```
import { SiElectrontitlebarComponent } from '@siemens/element-ng/electron-titlebar';
```

```
component SiElectrontitlebarComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [appTitle](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L24-L24>) (required) | `string` |  | Title of your application |
| [ariaLabelBack](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L83-L83>) | `TranslatableString` | `` $localize`:@@SI_ELECTRON_TITLEBAR.BACK:Back` `` | Aria Label for Back Button |
| [ariaLabelForward](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L73-L73>) | `TranslatableString` | `` $localize`:@@SI_ELECTRON_TITLEBAR.FORWARD:Forward` `` | Aria Label for Forward Button |
| [ariaLabelMenu](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L93-L93>) | `TranslatableString` | `` $localize`:@@SI_ELECTRON_TITLEBAR.MENU:Show actions` `` | Aria Label for Menu Button |
| [canGoBack](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L31-L31>) | `boolean` | `false` | Defines if the application can go back or not |
| [canGoForward](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L38-L38>) | `boolean` | `false` | Defines if the application can go forward or not |
| [hasFocus](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L45-L45>) | `boolean` | `true` | Defines if the application is focused or not |
| [menuItems](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L53-L53>) | `(MenuItem \| MenuItem)[]` | `[]` | List of menu items for the dropdown In this dropdown should the zoom functionality as well as the refresh function be provided |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [back](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L63-L63>) | `void` | Browsing back function |
| [forward](<https://github.com/siemens/element/blob/main/projects/element-ng/electron-titlebar/si-electron-titlebar.component.ts#L58-L58>) | `void` | Browsing forward function |

### Types Documentation

### [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](<../../../api/siemens/element-ng/types/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
```

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

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

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

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

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

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

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

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