# Menu

**Menus** display a list of actions related to a specific element or context.

## Usage

Menus open from a trigger, such as a buttons or right-click, and show actions related to the current context.

![Menu](<../images/menu.png>)

### When to use

- When users need to perform several actions on the same content.
- For actions that are not used frequently and don't need to be permanently visible.
- To keep the interface clean by grouping secondary actions in one place.
- If there is one action only, use [button](<https://element.siemens.io/components/buttons-menus/buttons/>) or [link](<https://element.siemens.io/components/buttons-menus/links/>) instead

### Best practices

- Order actions by importance, with the most relevant ones at the top.
- Group related actions and separate the groups with dividers.
- Move less important actions to a submenu.
- Keep disabled actions visible so users know the action exists but is currently unavailable.
- Avoid more than two levels of nested submenus.

## Design

### Elements

![Elements](<../images/menu-elements.png>)

> 1\. Item with submenu, 2. Section title, 3. Item with icon, 4. Divider

### Selection

Menus can include selectable items with single choice or multiple choice.

- Use single choice when only one option can be active at a time.
- Use multiple choice when users can enable or disable several options independently.

![Multiple and single choice](<../images/menu-alternatives.png>)

## Code

> [!WARNING]
>
> **Important API changes**
>
> With Element v45, the `si-menu` has been completely re-implemented to feature a declarative API style based on the [CDK Menu](<https://material.angular.io/cdk/menu/overview>). If you are migrating from the old `si-menu-legacy`, you might want to consider using the `si-menu-factory`, which provides a more compatible model-driven API.

The `si-menu` has a declarative API and an additional `si-menu-factory` which accepts `MenuItem[]`. It is built around the [CDK Menu](<https://material.angular.io/cdk/menu/overview>) using Angular's `hostDirective` feature. Due to this:

- `CdkMenuTrigger` is required to open the menu
- `CdkMenuItem` can be used directly if proper styling is applied (helpful for special use cases)

### Usage of the declarative API

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { CdkContextMenuTrigger, CdkMenuTrigger } from '@angular/cdk/menu';
import { Component, signal } from '@angular/core';
import {
  elementChat,
  elementCopy,
  elementCut,
  elementDelete,
  elementExport,
  elementOptionsVertical,
  elementRestore
} from '@siemens/element-icons';
import { addIcons, SiIconComponent } from '@siemens/element-ng/icon';
import { SiMenuModule } from '@siemens/element-ng/menu';

@Component({
  selector: 'app-sample',
  imports: [SiMenuModule, CdkContextMenuTrigger, CdkMenuTrigger, SiIconComponent],
  templateUrl: './si-menu.html'
})
export class SampleComponent {
  readonly view = signal('table');
  readonly showArchived = signal(true);

  readonly icons = addIcons({
    elementChat,
    elementCopy,
    elementCut,
    elementDelete,
    elementExport,
    elementOptionsVertical,
    elementRestore
  });

  toggleArchived(): void {
    this.showArchived.update(value => !value);
  }
}
```

Template:

```html
<div class="si-layout-main-padding" style="height: 400px">
  <div class="row g-3 h-100">
    <div class="col">
      <div class="si-h5-bold mb-4">Default button with menu</div>
      <button type="button" class="btn btn-primary" [cdkMenuTriggerFor]="contextMenu">Menu</button>
    </div>

    <div class="col">
      <div class="si-h5-bold mb-4">Tertiary button with menu</div>
      <button
        type="button"
        class="btn btn-icon btn-tertiary"
        aria-label="Options"
        [cdkMenuTriggerFor]="contextMenu"
      >
        <si-icon [icon]="icons.elementOptionsVertical" />
      </button>
    </div>

    <div
      class="col border rounded d-flex align-items-center justify-content-center"
      [cdkContextMenuTriggerFor]="contextMenu"
    >
      <span>Right click here to open context menu</span>
    </div>
  </div>
</div>

<ng-template #contextMenu>
  <si-menu>
    <si-menu-item [icon]="icons.elementCut">Cut</si-menu-item>
    <si-menu-item [icon]="icons.elementCopy">Copy</si-menu-item>
    <si-menu-item [cdkMenuTriggerFor]="pasteTypes">Paste as</si-menu-item>
    <si-menu-item [icon]="icons.elementDelete">Delete</si-menu-item>
    <si-menu-divider />
    <si-menu-item>Rename</si-menu-item>
    <si-menu-item disabled>Share</si-menu-item>
    <si-menu-item disabled>Archive</si-menu-item>
    <si-menu-item-checkbox [checked]="showArchived()" (triggered)="toggleArchived()">
      Show archived
    </si-menu-item-checkbox>
    <si-menu-divider />
    <si-menu-header>View as</si-menu-header>
    <si-menu-item-radio [checked]="view() === 'table'" (triggered)="view.set('table')">
      Table
    </si-menu-item-radio>
    <si-menu-item-radio [checked]="view() === 'cards'" (triggered)="view.set('cards')">
      Cards
    </si-menu-item-radio>
    <si-menu-item-radio [checked]="view() === 'timeline'" (triggered)="view.set('timeline')">
      Timeline
    </si-menu-item-radio>
    <si-menu-divider />
    <si-menu-item badge="3" badgeColor="info" [icon]="icons.elementChat">Comments</si-menu-item>
    <si-menu-item [icon]="icons.elementRestore">Version history</si-menu-item>
    <si-menu-divider />
    <si-menu-item [icon]="icons.elementExport" [cdkMenuTriggerFor]="fileTypes"
      >Export as</si-menu-item
    >
  </si-menu>
</ng-template>

<ng-template #pasteTypes>
  <si-menu>
    <si-menu-item>Plain text</si-menu-item>
    <si-menu-item>Keep formatting</si-menu-item>
  </si-menu>
</ng-template>

<ng-template #fileTypes>
  <si-menu>
    <si-menu-item>Image</si-menu-item>
    <si-menu-item>File</si-menu-item>
    <si-menu-item [cdkMenuTriggerFor]="otherFileTypes">Other</si-menu-item>
  </si-menu>
</ng-template>

<ng-template #otherFileTypes>
  <si-menu>
    <si-menu-item>Zip</si-menu-item>
  </si-menu>
</ng-template>
```

### Usage of the factory API

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { CdkContextMenuTrigger, CdkMenuTrigger } from '@angular/cdk/menu';
import { Component, signal } from '@angular/core';
import {
  elementChat,
  elementCopy,
  elementCut,
  elementDelete,
  elementExport,
  elementOptionsVertical,
  elementRestore
} from '@siemens/element-icons';
import { addIcons, SiIconComponent } from '@siemens/element-ng/icon';
import { MenuItem, SiMenuFactoryComponent } from '@siemens/element-ng/menu';

@Component({
  selector: 'app-sample',
  imports: [CdkContextMenuTrigger, CdkMenuTrigger, SiMenuFactoryComponent, SiIconComponent],
  templateUrl: './si-menu-factory.html'
})
export class SampleComponent {
  readonly icons = addIcons({
    elementChat,
    elementCopy,
    elementCut,
    elementDelete,
    elementExport,
    elementOptionsVertical,
    elementRestore
  });

  readonly items = signal<MenuItem[]>([
    { type: 'action', label: 'Cut', icon: this.icons.elementCut, action: () => alert('Cut') },
    { type: 'action', label: 'Copy', icon: this.icons.elementCopy, action: () => alert('Copy') },
    {
      type: 'group',
      label: 'Paste as',
      children: [
        { type: 'action', label: 'Plain text', action: () => alert('Plain text') },
        { type: 'action', label: 'Keep formatting', action: () => alert('Keep formatting') }
      ]
    },
    {
      type: 'action',
      label: 'Delete',
      icon: this.icons.elementDelete,
      action: () => alert('Delete')
    },
    { type: 'divider' },
    { type: 'action', label: 'Rename', action: () => alert('Rename') },
    { type: 'action', label: 'Share', disabled: true, action: () => {} },
    { type: 'action', label: 'Archive', disabled: true, action: () => {} },
    {
      type: 'checkbox',
      label: 'Show archived',
      checked: true,
      action: () => this.toggleArchived()
    },
    { type: 'divider' },
    { type: 'header', label: 'View as' },
    { type: 'radio', label: 'Table', checked: true, action: () => this.setView('Table') },
    { type: 'radio', label: 'Cards', checked: false, action: () => this.setView('Cards') },
    { type: 'radio', label: 'Timeline', checked: false, action: () => this.setView('Timeline') },
    { type: 'divider' },
    {
      type: 'action',
      label: 'Comments',
      icon: this.icons.elementChat,
      badge: 3,
      badgeColor: 'info',
      action: () => alert('Comments')
    },
    {
      type: 'action',
      label: 'Version history',
      icon: this.icons.elementRestore,
      action: () => alert('Version history')
    },
    { type: 'divider' },
    {
      type: 'group',
      label: 'Export as',
      icon: this.icons.elementExport,
      children: [
        { type: 'action', label: 'Image', action: () => alert('Image') },
        { type: 'action', label: 'File', action: () => alert('File') },
        {
          type: 'group',
          label: 'Other',
          children: [{ type: 'action', label: 'Zip', action: () => alert('Zip') }]
        }
      ]
    }
  ]);

  toggleArchived(): void {
    this.items.update(items =>
      items.map(item => (item.type === 'checkbox' ? { ...item, checked: !item.checked } : item))
    );
  }

  setView(view: string): void {
    this.items.update(items =>
      items.map(item => (item.type === 'radio' ? { ...item, checked: item.label === view } : item))
    );
  }
}
```

Template:

```html
<div class="si-layout-main-padding" style="height: 400px">
  <div class="row g-3 h-100">
    <div class="col">
      <div class="si-h5-bold mb-4">Default button with menu</div>
      <button type="button" class="btn btn-primary" [cdkMenuTriggerFor]="contextMenu">Menu</button>
    </div>

    <div class="col">
      <div class="si-h5-bold mb-4">Tertiary button with menu</div>
      <button
        type="button"
        class="btn btn-icon btn-tertiary"
        aria-label="Options"
        [cdkMenuTriggerFor]="contextMenu"
      >
        <si-icon [icon]="icons.elementOptionsVertical" />
      </button>
    </div>

    <div
      class="col border rounded d-flex align-items-center justify-content-center"
      [cdkContextMenuTriggerFor]="contextMenu"
    >
      <span>Right click here to open context menu</span>
    </div>
  </div>
</div>

<ng-template #contextMenu>
  <si-menu-factory [items]="items()" />
</ng-template>
```

### `si-menu-bar`

The `si-menu-bar` is a horizontal menu that is based on the `CdkMenuBar`.

While being visually similar to the `si-content-action-bar` it has two differences:

- `si-menu-bar` has a declarative API
- `si-menu-bar` has no responsive behavior

In general, we recommend using the `si-content-action-bar` over the `si-menu-bar`.

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { CdkMenuTrigger } from '@angular/cdk/menu';
import { Component } from '@angular/core';
import { SiMenuModule } from '@siemens/element-ng/menu';

@Component({
  selector: 'app-sample',
  imports: [SiMenuModule, CdkMenuTrigger],
  templateUrl: './si-menu-bar.html'
})
export class SampleComponent {
  isAwesome = true;
  beverage = 'beer';
}
```

Template:

```html
<si-menu-bar>
  <si-menu-item icon="element-home" [cdkMenuTriggerFor]="subMenu">Item 1</si-menu-item>
  <si-menu-item [cdkMenuTriggerFor]="subMenu">Item 2</si-menu-item>
  <si-menu-item icon="element-tv">Item 3</si-menu-item>
  <si-menu-item>Item 3</si-menu-item>
  <si-menu-item disabled>Item 4</si-menu-item>
  <si-menu-item
    icon="element-options-vertical"
    aria-label="Options"
    [cdkMenuTriggerFor]="subMenu"
  />
  <si-menu-item icon="element-cancel" aria-label="Cancel" />
</si-menu-bar>

<ng-template #subMenu>
  <si-menu>
    <si-menu-item>Item 1</si-menu-item>
    <si-menu-item>Item 2</si-menu-item>
    <si-menu-item>Item 3</si-menu-item>
    <si-menu-item>Item 4</si-menu-item>
  </si-menu>
</ng-template>
```

### [SiMenuItemComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item.component.ts#L28-L38>)

**Kind:** component

**Selector:** `si-menu-item, a[si-menu-item], button[si-menu-item]`

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

```
component SiMenuItemComponent extends SiMenuItemBase
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L17-L17>) (inherited) | `string \| number \| undefined` |  | Content displayed in the menu item's badge.<br><br>Inherited from `SiMenuItemBase` |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L23-L23>) (inherited) | `string` | `'secondary'` | Color variant of the menu item's badge.<br><br>Inherited from `SiMenuItemBase` |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L39-L39>) (inherited) | `boolean` | `false` | Whether the menu item is disabled.<br><br>Inherited from `SiMenuItemBase` |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L25-L25>) (inherited) | `string \| undefined` |  | Icon displayed before the menu item label.<br><br>Inherited from `SiMenuItemBase` |
| [iconBadgeDot](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L32-L32>) (inherited) | `string \| number \| boolean \| undefined` | `false` | Whether to show a dot badge on the icon. A string or number is shown as dot content.<br><br>Inherited from `SiMenuItemBase` |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| triggered | `void` | If this MenuItem is a regular MenuItem, outputs when it is triggered by a keyboard or mouse event. |

### [SiMenuItemCheckboxComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-checkbox.component.ts#L26-L34>)

**Kind:** component

**Selector:** `si-menu-item-checkbox, button[si-menu-item-checkbox]`

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

```
component SiMenuItemCheckboxComponent extends SiMenuItemBase
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L17-L17>) (inherited) | `string \| number \| undefined` |  | Content displayed in the menu item's badge.<br><br>Inherited from `SiMenuItemBase` |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L23-L23>) (inherited) | `string` | `'secondary'` | Color variant of the menu item's badge.<br><br>Inherited from `SiMenuItemBase` |
| checked (inherited) | `boolean` |  | Whether the element is checked |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L39-L39>) (inherited) | `boolean` | `false` | Whether the menu item is disabled.<br><br>Inherited from `SiMenuItemBase` |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L25-L25>) (inherited) | `string \| undefined` |  | Icon displayed before the menu item label.<br><br>Inherited from `SiMenuItemBase` |
| [iconBadgeDot](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L32-L32>) (inherited) | `string \| number \| boolean \| undefined` | `false` | Whether to show a dot badge on the icon. A string or number is shown as dot content.<br><br>Inherited from `SiMenuItemBase` |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| triggered (inherited) | `void` | If this MenuItem is a regular MenuItem, outputs when it is triggered by a keyboard or mouse event. |

### [SiMenuItemRadioComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-radio.component.ts#L26-L32>)

**Kind:** component

**Selector:** `si-menu-item-radio`

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

```
component SiMenuItemRadioComponent extends SiMenuItemBase
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L17-L17>) (inherited) | `string \| number \| undefined` |  | Content displayed in the menu item's badge.<br><br>Inherited from `SiMenuItemBase` |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L23-L23>) (inherited) | `string` | `'secondary'` | Color variant of the menu item's badge.<br><br>Inherited from `SiMenuItemBase` |
| checked (inherited) | `boolean` |  | Whether the element is checked |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L39-L39>) (inherited) | `boolean` | `false` | Whether the menu item is disabled.<br><br>Inherited from `SiMenuItemBase` |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L25-L25>) (inherited) | `string \| undefined` |  | Icon displayed before the menu item label.<br><br>Inherited from `SiMenuItemBase` |
| [iconBadgeDot](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-item-base.directive.ts#L32-L32>) (inherited) | `string \| number \| boolean \| undefined` | `false` | Whether to show a dot badge on the icon. A string or number is shown as dot content.<br><br>Inherited from `SiMenuItemBase` |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| triggered (inherited) | `void` | If this MenuItem is a regular MenuItem, outputs when it is triggered by a keyboard or mouse event. |

### [SiMenuFactoryComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-factory.component.ts#L43-L90>)

**Kind:** component

**Selector:** `si-menu-factory`

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

```
component SiMenuFactoryComponent
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| [actionParam](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-factory.component.ts#L47-L47>) | `unknown` | Parameter passed to triggered menu item actions. |
| [items](<https://github.com/siemens/element/blob/main/projects/element-ng/menu/si-menu-factory.component.ts#L45-L45>) | `readonly (MenuItem \| MenuItem)[] \| undefined` | Menu items to render. Supports legacy and current menu item models. |

### CdkMenuTrigger

**Kind:** directive

**Selector:** `[cdkMenuTriggerFor]`

**Exported as:** `cdkMenuTriggerFor`

A directive that turns its host element into a trigger for a popup menu. It can be combined with cdkMenuItem to create sub-menus. If the element is in a top level MenuBar it will open the menu on click, or if a sibling is already opened it will open on hover. If it is inside of a Menu it will open the attached Submenu on hover regardless of its sibling state.

```
directive CdkMenuTrigger extends CdkMenuTriggerBase implements OnChanges, OnDestroy
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| cdkMenuPosition (inherited) | `ConnectedPosition[]` | A list of preferred menu positions to be used when constructing the `FlexibleConnectedPositionStrategy` for this trigger's menu.<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |
| cdkMenuTriggerData (inherited) | `unknown` | Context data to be passed along to the menu template<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |
| cdkMenuTriggerFor (inherited) | `TemplateRef<unknown> \| null` | Template reference variable to the menu this trigger opens<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |
| cdkMenuTriggerTransformOriginOn (inherited) | `string \| null` | Selector for the element on which to set the transform origin once the menu is open. This makes it easier to implement animations that start from the attachment point of the menu.<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| cdkMenuClosed (inherited) | `void` | Emits when the attached menu is requested to close<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |
| cdkMenuOpened (inherited) | `void` | Emits when the attached menu is requested to open<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |

#### Attributes and Methods

##### close

Close the opened menu.

Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>)

```
close(): void
```

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

##### getMenu

Get a reference to the rendered Menu if the Menu is open and rendered in the DOM.

```
getMenu(): Menu | undefined
```

**Returns:** [Menu](<https://material.angular.dev/cdk/menu/api#Menu>)`  |  `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)

##### injector

**Modifiers:** readonly, inherited

**Type:** `Injector`

The DI injector for this component.

Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>)

##### isOpen

**Modifiers:** inherited

Whether the attached menu is open.

Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>)

```
isOpen(): boolean
```

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### open

Open the attached menu.

```
open(): void
```

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

##### registerChildMenu

**Modifiers:** inherited

Registers a child menu as having been opened by this trigger.

Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>)

```
registerChildMenu(child: Menu): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| child | `Menu` |  |  |

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

##### toggle

Toggle the attached menu.

```
toggle(): void
```

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

### CdkContextMenuTrigger

**Kind:** directive

**Selector:** `[cdkContextMenuTriggerFor]`

**Exported as:** `cdkContextMenuTriggerFor`

A directive that opens a menu when a user right-clicks within its host element. It is aware of nested context menus and will trigger only the lowest level non-disabled context menu.

```
directive CdkContextMenuTrigger extends CdkMenuTriggerBase implements OnDestroy
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| cdkContextMenuDisabled | `boolean` | Whether the context menu is disabled. |
| cdkContextMenuPosition (inherited) | `ConnectedPosition[]` | A list of preferred menu positions to be used when constructing the `FlexibleConnectedPositionStrategy` for this trigger's menu.<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |
| cdkContextMenuTriggerData (inherited) | `unknown` | Context data to be passed along to the menu template<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |
| cdkContextMenuTriggerFor (inherited) | `TemplateRef<unknown> \| null` | Template reference variable to the menu this trigger opens<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |
| cdkContextMenuTriggerTransformOriginOn (inherited) | `string \| null` | Selector for the element on which to set the transform origin once the menu is open. This makes it easier to implement animations that start from the attachment point of the menu.<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| cdkContextMenuClosed (inherited) | `void` | Emits when the attached menu is requested to close<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |
| cdkContextMenuOpened (inherited) | `void` | Emits when the attached menu is requested to open<br><br>Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>) |

#### Attributes and Methods

##### close

Close the currently opened context menu.

Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>)

```
close(): void
```

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

##### injector

**Modifiers:** readonly, inherited

**Type:** `Injector`

The DI injector for this component.

Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>)

##### isOpen

**Modifiers:** inherited

Whether the attached menu is open.

Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>)

```
isOpen(): boolean
```

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### open

Open the attached menu at the specified location.

```
open(coordinates: ContextMenuCoordinates): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| coordinates | `ContextMenuCoordinates` |  | where to open the context menu |

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

##### registerChildMenu

**Modifiers:** inherited

Registers a child menu as having been opened by this trigger.

Inherited from [CdkMenuTriggerBase](<https://material.angular.dev/cdk/menu/api#CdkMenuTriggerBase>)

```
registerChildMenu(child: Menu): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| child | `Menu` |  |  |

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

### 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](<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. |
