# Flexible dashboard

**Flexible dashboards** are an extension of [static dashboards](<https://element.siemens.io/components/dashboards/dashboard/>) that allow users to customize the content according to their specific needs.

## Usage

Flexible dashboards offers a personalized experience by enabling users to tailor the dashboards content itself.

Users can enter the edit mode to add, move and remove widgets, as well as restoring the dashboard to its default settings.

![Flexible dashboard](<../images/flexible-dashboard.png>)

### When to use

- Use it when there is a large amount of widgets that users can choose from.
- Use it if the application is used by a diverse group of users with different needs and goals.
- Use it if users may need to prioritize certain types of information over others based on their current tasks or goals.
- Be mindful about its use. Providing too many customization options can overwhelm users and make the dashboard more difficult to use.

## Design

### Default mode

In **default mode**, the dashboard displays a pre-defined set of widgets, providing users with a view of the data and insights based on their chosen configuration.

![Flexible dashboard default](<../images/flexible-dashboard-default.png>)

> 1. Title (optional), 2. Dashboard options (optional), 3. Content area 4. Edit mode button

The *dashboard options* area on top of the widgets can be used for actions such as filtering, which affect the whole dashboard.

### Edit mode

In **edit mode**, users can customize the dashboard to fit their specific needs. The *dashboard options* area is replaced by *editing options* that allow users to add widgets and perform other actions.

![Flexible dashboard edit](<../images/flexible-dashboard-edit.png>)

> 1. Title (optional), 2. Editing options (optional), 3. Content area, 4. Save and cancel button

#### Add widget

1. Select `Add widget` to open the widget library.
2. Select the desired widget.
3. Click `Add`. The library will be closed and the new widget will be added at the bottom of the page.

![Flexible dashboard add](<../images/flexible-dashboard-add.png>)

#### Resize

Users can use the resize handler at the bottom right corner and drag horizontally to change the width, vertically to change the height, or diagonally to change both dimensions. A light blue box appears to indicate the area a widget will snap to, once the user releases the resize handle.

![Flexible dashboard resize](<../images/flexible-dashboard-resize.png>)

#### Move

Users can select a widget within the content area and drag it to the desired location. As with resizing, a light blue box appears to indicate where the widget will be positioned upon letting it go.

![Flexible dashboard move](<../images/flexible-dashboard-move.png>)

## Code

The flexible dashboards are based on [gridstack.js](<http://gridstackjs.com>).

See [README](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/README.md>) for details about including to your app.

Direct [Link](<https://element.siemens.io/dashboards-demo/#/dashboard>) to dashboard demo.

### [SiFlexibleDashboardComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L74-L391>)

**Kind:** component

**Selector:** `si-flexible-dashboard`

```
import { SiFlexibleDashboardComponent } from '@siemens/dashboards-ng';
```

The component implements a dashboard with adding, removing and resizing widgets. It consists and connects a toolbar, a grid with widgets, and a widget catalog.

Project `si-inline-notification` elements directly into this component to display dashboard-level notifications below the toolbar and above the widget grid in the dashboard view. Other element types are not accepted.

```
component SiFlexibleDashboardComponent implements OnInit, OnChanges, OnDestroy
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [config](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L150-L150>) | `Config \| undefined` | `inject(SI_DASHBOARD_CONFIGURATION)` | Option to configure a dashboard instance. Default is the optional value from the [SI\_DASHBOARD\_CONFIGURATION](<../../../api/siemens/dashboards-ng/types/SI_DASHBOARD_CONFIGURATION/index.html#t:SI_DASHBOARD_CONFIGURATION>). |
| [dashboardId](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L108-L108>) | `string \| undefined` |  | Optionally, but it is recommended to include an id for a dashboard. The id is utilized in the persistence calls on the [SiWidgetStorage](<index.html#t:SiWidgetStorage>). |
| [editable](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L80-L80>) | `boolean` | `false` | Input to change the dashboard editable state. |
| [heading](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L89-L89>) | `string \| undefined` |  | Heading for the dashboard.<br><br>To show a custom header instead, e.g. with a description or page actions, project it using the `header` attribute. The heading is ignored in that case. While adding or editing widgets, the respective title is shown instead. |
| [hideAddWidgetInstanceButton](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L121-L121>) | `boolean` | `false` | Option to remove the add widget instance button from the primary toolbar. |
| [hideEditButton](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L128-L128>) | `boolean` | `false` | Option to hide the dashboard edit button. |
| [hideProgressIndicator](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L142-L142>) | `boolean` | `false` | Option to turn off the loading spinner on save and load operations. |
| [multiSelect](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L181-L183>) | `boolean` | `false` | Option to enable multi-select in the widget catalog. When enabled, the user can select multiple widgets to add to the dashboard at once. |
| [primaryEditActions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L168-L168>) | `DashboardToolbarItem[]` | `[]` | Primary action menu items shown in the edit mode of the dashboard. |
| [searchPlaceholder](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L160-L162>) | `TranslatableString` | `` $localize`:@@DASHBOARD.WIDGET_LIBRARY.SEARCH_PLACEHOLDER:Search…` `` | Placeholder text for the search input field in the widget catalog. |
| [secondaryEditActions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L174-L174>) | `DashboardToolbarItem[]` | `[]` | Secondary action menu items shown in the edit mode of the dashboard. |
| [showEditButtonLabel](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L135-L135>) | `boolean` | `false` | Option to display the edit button as a text button instead, only if the window is larger than xs [SiResponsiveContainerDirective](<../../../api/siemens/element-ng/directives/SiResponsiveContainerDirective/index.html#SiResponsiveContainerDirective>). |
| [widgetCatalog](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L114-L114>) | `Widget[]` | `[]` | Sets the available widgets for the widget catalog to the dashboard. |
| [widgetCatalogComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L95-L95>) | `Type<SiWidgetCatalogComponent> \| undefined` |  | Optionally, provide a custom subclass of the SiWidgetCatalogComponent to use your own catalog component. |
| [widgetInstanceEditorDialogComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L101-L102>) | `Type<SiWidgetInstanceEditorDialogComponent> \| undefined` |  | Optionally, provide a custom subclass of the [SiWidgetInstanceEditorDialogComponent](<index.html#SiWidgetInstanceEditorDialogComponent>) to use your own implementation. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [editableChange](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L80-L80>) | `boolean` | Input to change the dashboard editable state. |
| [isModified](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L205-L205>) | `boolean` | Emits the modification state of the grid. It is `unmodified` when the visible state is equal to the loaded state from the widget storage. When the user modifies the dashboard by e.g. while moving the widgets, the dashboard is marked as `modified` and emits `true` and when the user persists the change by saving, or reverts the state by canceling, the state is `unmodified` again and emits `false`. |

### [SiGridComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L49-L454>)

**Kind:** component

**Selector:** `si-grid`

```
import { SiGridComponent } from '@siemens/dashboards-ng';
```

The grid component is the actual component on which the widget instances are placed and visualized. You can think of a headless dashboard, without a title, toolbar or edit buttons.

```
component SiGridComponent implements OnInit, OnChanges, OnDestroy
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [dashboardId](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L75-L75>) | `string \| undefined` |  | An optional, but recommended dashboard id that is used in persistence and passed to the widget store for saving and loading data. |
| [editable](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L69-L69>) | `boolean` | `false` | Sets the grid into editable mode, in which the widget instances can be moved, resized, removed or new ones added. |
| [emitWidgetInstanceEditEvents](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L99-L99>) | `boolean` | `false` | When the user clicks edit on a widget instance, an editor need to appear and the widget editor component need to be loaded. When the grid is used standalone, it takes care and opens a modal dialog and loads the configured widget editor component. When the grid is used in a container like the flexible dashboard, the container manages where the widget instance editor is displayed. In this case this options prevents the grid from showing the editor in the dialog, and emits on `widgetInstanceEdit` on clicking the widget `edit` action. |
| [gridConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L61-L61>) | `GridConfig \| undefined` | `inject(SI_DASHBOARD_CONFIGURATION)?.grid` | Configuration options for a grid instance. Default is the optional value from the [SI\_DASHBOARD\_CONFIGURATION](<../../../api/siemens/dashboards-ng/types/SI_DASHBOARD_CONFIGURATION/index.html#t:SI_DASHBOARD_CONFIGURATION>). |
| [hideProgressIndicator](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L106-L106>) | `boolean` | `false` | Option to turn off the loading spinner on save and load operations. |
| [widgetCatalog](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L83-L83>) | `Widget[]` | `[]` | Provides the available widgets to the grid. When loading the widget configurations from the storage, we need to have the widget definition available to be able to create the widget instances on the grid. |
| [widgetInstanceEditorDialogComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L112-L113>) | `Type<SiWidgetInstanceEditorDialogComponent> \| undefined` |  | Option to configure a custom widget instance editor dialog component. The component provides the editor hosting and the buttons to save and cancel. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [editableChange](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L69-L69>) | `boolean` | Sets the grid into editable mode, in which the widget instances can be moved, resized, removed or new ones added. |
| [isModified](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L122-L122>) | `boolean` | Emits the modification state of the grid. It is `unmodified` when the visible state is equal to the loaded state from the widget storage. When the user modifies the dashboard by e.g. while moving the widgets, the dashboard is marked as `modified` and emits `true` and when the user persists the change by saving, or reverts the state by canceling, the state is `unmodified` again and emits `false`. |
| [widgetInstanceEdit](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L134-L134>) | `WidgetConfig` | Emits to notify about edit events of widget instances. Only emits if `emitWidgetInstanceEditEvents` is set to `true`. |

#### Attributes and Methods

##### addWidgetInstance

[Source for addWidgetInstance](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L274-L283>)

Adds a new widget instance configuration to the dashboard grid. It is not persisted yet and is added to the transient widget instances.

```
addWidgetInstance(widgetInstanceConfig: Omit<WidgetConfig, "id">): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [widgetInstanceConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L274-L274>) | `Omit<WidgetConfig, "id">` |  | • The new widget configuration. |

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

##### cancel

[Source for cancel](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L261-L266>)

Cancel current changes and restore last saved state.

```
cancel(): void
```

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

##### edit

[Source for edit](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L219-L224>)

Set dashboard grid in editable mode to modify widget instances.

```
edit(): void
```

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

##### editWidgetInstance

[Source for editWidgetInstance](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L314-L342>)

Opens the provided widget configuration in the related editor or emits on [widgetInstanceEdit](<index.html#SiGridComponent.widgetInstanceEdit>), if [emitWidgetInstanceEditEvents](<index.html#SiGridComponent.emitWidgetInstanceEditEvents>) is true.

```
editWidgetInstance(widgetInstanceConfig: WidgetConfig): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [widgetInstanceConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L314-L314>) | `WidgetConfig` |  | • The config of the widget instance to edit. |

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

##### gridStackWrapper

[Source for gridStackWrapper](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L178-L178>)

**Modifiers:** readonly

**Type:** `Signal<SiGridstackWrapperComponent>`

**Default:** `viewChild.required(SiGridstackWrapperComponent)`

##### isLoading

[Source for isLoading](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L183-L183>)

**Modifiers:** readonly

**Type:** `BehaviorSubject<boolean>`

**Default:** `new BehaviorSubject<boolean>(false)`

Indication for load and save operations.

##### removeWidgetInstance

[Source for removeWidgetInstance](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L291-L305>)

Removes a widget instance from the visible widgets and puts it in the markedForRemoval array.

```
removeWidgetInstance(widgetInstanceId: string): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [widgetInstanceId](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L291-L291>) | `string` |  | • The id of the widget instance to be removed. |

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

##### save

[Source for save](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L230-L256>)

Persists the current widget instances to the widget storage and changes the editable and isModified modes.

```
save(): void
```

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

##### updateWidgetInstance

[Source for updateWidgetInstance](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L350-L359>)

Updates the visible widgets with an updated configuration. Will update the user interface and emit on [isModified](<index.html#SiGridComponent.isModified>).

```
updateWidgetInstance(editedWidgetConfig: WidgetConfig): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [editedWidgetConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/grid/si-grid.component.ts#L350-L350>) | `WidgetConfig` |  | • The config of the widget instance that was updated. |

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

### Limit widget instances

Set `maxInstances` on a `Widget` descriptor to limit how many instances can be added through the catalog. Omit it for unlimited instances, use a positive number for a maximum, or set it to `0` to disable creation while keeping the widget visible.

When a positive limit is reached, the catalog shows the widget as disabled with a neutral, translatable **Added** badge. In multi-select mode, checkboxes represent only widgets selected to add. Added widgets remain unchecked and cannot be selected. Disabled widgets are skipped during keyboard navigation. If a selected widget reaches its limit while the catalog is open, it is deselected and cannot be added, even from its editor.

Use the optional translatable `badge` text to explain a consumer restriction, for example by extending an existing widget descriptor:

```
const licensedWidget: Widget = {
  ...existingWidget,
  maxInstances: 0,
  badge: 'Requires license'
};
```

Consumer badges use the info style, and the built-in **Added** badge takes precedence when a positive limit is reached. The flexible dashboard passes its current grid instances to the catalog via `visibleWidgetInstances`. When using the catalog standalone, bind `[visibleWidgetInstances]` to track existing widgets; if omitted, it defaults to an empty list (`maxInstances: 0` still disables creation).

These limits apply to the catalog only; programmatic `addWidgetInstance()` calls are not restricted.

### Custom header

Like the [dashboard](<https://element.siemens.io/components/dashboards/dashboard/#custom-header>), the flexible dashboard supports a custom header, e.g. with a description or page actions. Project it using the `header` attribute and follow the [page header](<https://element.siemens.io/fundamentals/layouts/header/>) guidelines. The custom header replaces the `heading` in the dashboard view. While adding or editing widgets, the respective title is shown instead.

```
<si-flexible-dashboard [dashboardId]="dashboardId" [widgetCatalog]="widgetCatalog">
  <div class="si-layout-header" header>
    <h2 class="si-layout-title si-layout-top-element">Dashboard</h2>
    <p class="si-layout-subtitle">Description</p>
  </div>
</si-flexible-dashboard>
```

### Dashboard notifications

Project [`si-inline-notification`](<https://element.siemens.io/components/status-notifications/inline-notification/>) elements directly into `<si-flexible-dashboard>`. Other elements are not accepted by this slot. Notifications are displayed below the dashboard toolbar and above the widget grid. They stay pinned with the dashboard header while the widget grid scrolls, and the region collapses completely when no notification is projected.

Use this region for important, persistent states that affect the entire dashboard or multiple widgets, such as outdated data or failed widget loading. Keep messages concise and avoid using the region for routine or transient widget updates.

```
<si-flexible-dashboard [dashboardId]="dashboardId" [widgetCatalog]="widgetCatalog">
  <si-inline-notification
    severity="warning"
    heading="Some data is outdated"
    message="The dashboard could not refresh all widgets."
  />
</si-flexible-dashboard>
```

### Persistence of dashboard configuration

### [SiWidgetStorage](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L29-L69>)

**Kind:** class

```
import { SiWidgetStorage } from '@siemens/dashboards-ng';
```

Widget storage api to provide the persistence layer of the widgets of a dashboard (typically from a web service). The dashboard grid uses this API to load and save the widget configurations. Applications using siemens-dashboard needs to implement this abstract class and provide it in the module configuration.

```
undecorated_class SiWidgetStorage
```

#### Constructor

##### constructor

[Source for constructor](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L29-L69>)

```
constructor(): SiWidgetStorage
```

**Returns:** [SiWidgetStorage](<index.html#t:SiWidgetStorage>)

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [getToolbarMenuItems](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L65-L68>) (optional, deprecated) | `((dashboardId?: string) => { primary: Observable<(MenuItem \| DashboardToolbarItem)[]>; secondary: Observable<(MenuItem \| DashboardToolbarItem)[]>; })` | Optional method to provide primary and secondary toolbar menu items.<br><br>Deprecated: use [provideDashboardToolbarItems](<../../../api/siemens/dashboards-ng/types/provideDashboardToolbarItems/index.html#t:provideDashboardToolbarItems>) to provide common toolbar items. Additionally configure individual dashboard actions via [SiFlexibleDashboardComponent.primaryEditActions](<index.html#SiFlexibleDashboardComponent.primaryEditActions>) and [SiFlexibleDashboardComponent.secondaryEditActions](<index.html#SiFlexibleDashboardComponent.secondaryEditActions>) respectively. |

#### Methods

##### load

[Source for load](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L34-L34>)

Returns an observable with the dashboard widget configuration. The dashboard subscribes to the observable and updates when a new value emits.

```
load(dashboardId?: string): Observable<WidgetConfig[]>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [dashboardId](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L34-L34>) (optional) | `string` |  |  |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[WidgetConfig](<index.html#t:WidgetConfig>)`[]>`

##### save

[Source for save](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L51-L56>)

Saves the given widget configuration. New widgets have `id` generated through the `SiWidgetIdProvider.generateWidgetId` implementation and if ids comes from backend then it is in the responsibility of the implementor to update the ids of the new widgets with the ids returned from backend upon save. In addition, the implementor needs to check if objects that have been available before are missing. These widgets have been removed by the user. As a result of this method, the observables returned by the `load()` method should emit the new widget config objects, before also returning them.

Returns: An observable that emits the saved widget config objects with their ids.

```
save(modifiedWidgets: WidgetConfig[], addedWidgets: WidgetConfig[], removedWidgets?: WidgetConfig[], dashboardId?: string): Observable<WidgetConfig[]>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [modifiedWidgets](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L52-L52>) | `WidgetConfig[]` |  | • The existing widget config objects to be saved. |
| [addedWidgets](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L53-L53>) | `WidgetConfig[]` |  | • The new widget config objects to be saved. |
| [removedWidgets](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L54-L54>) (optional) | `WidgetConfig[]` |  | • The widget config objects that have been removed. |
| [dashboardId](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-widget-storage.ts#L55-L55>) (optional) | `string` |  | • The id of the dashboard if present to allow dashboard specific storage. |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[WidgetConfig](<index.html#t:WidgetConfig>)`[]>`

### [SiWidgetCatalogComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.ts#L61-L458>)

**Kind:** component

**Selector:** `si-widget-catalog`

```
import { SiWidgetCatalogComponent } from '@siemens/dashboards-ng';
```

Default widget catalog implementation to show all available widgets that can be added to a dashboard. It consists of a list view, that lists all available widgets and after selection, a host in which the widget specific editor is loaded. Applications can either stay with the default catalog or implement their own by extending this class.

```
component SiWidgetCatalogComponent extends SiWidgetEditorBase implements OnInit
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [multiSelect](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.ts#L67-L69>) | `boolean` | `false` | Option to enable multi-select in the widget catalog. When enabled, the user can select multiple widgets to add to the dashboard at once. |
| [searchPlaceholder](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.ts#L78-L80>) | `TranslatableString` | `` $localize`:@@DASHBOARD.WIDGET_LIBRARY.SEARCH_PLACEHOLDER:Search…` `` | Placeholder text for the search input field in the widget catalog. |
| [visibleWidgetInstances](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.ts#L120-L120>) | `WidgetConfig[]` | `[]` | Current visible widget instances on the dashboard, used to enforce `maxInstances` limits and display the added state in the catalog. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [closed](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.ts#L87-L87>) | `Omit<WidgetConfig, "id">[] \| undefined` | Emits when the catalog is `closed`, either by canceling or by adding or saving widget configurations. On cancel `undefined` is emitted, otherwise an array of the related widget configurations is emitted. In single-select mode the array always contains exactly one entry. |

#### Attributes and Methods

##### widgetCatalog

[Source for widgetCatalog](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.ts#L104-L104>)

**Modifiers:** deprecated

**Type:** `Widget[]`

**Default:** `[]`

Property to provide the available widgets to the catalog. The flexible dashboard creates the catalog by Angular's `createComponent()` method and sets the available widgets to this attribute.

Deprecated: This property will be removed in v52. Use the signal `widgetList` instead.

##### widgetList

[Source for widgetList](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.ts#L112-L112>)

**Modifiers:** readonly

**Type:** `WritableSignal<Widget[]>`

**Default:** `[]`

Property to provide the available widgets to the catalog. The flexible dashboard creates the catalog by Angular's `createComponent()` method and sets the available widgets to this attribute.

### [SiWidgetInstanceEditorDialogComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.ts#L35-L175>)

**Kind:** component

**Selector:** `si-widget-instance-editor-dialog`

```
import { SiWidgetInstanceEditorDialogComponent } from '@siemens/dashboards-ng';
```

The Dialog component is utilized when editing a widget instance within a dashboard. It dynamically loads and creates the associated widget editor and incorporates it into its content. The dialog component is accountable for interacting with the dashboard and offers options for saving changes or terminating the editing process.

```
component SiWidgetInstanceEditorDialogComponent extends SiWidgetEditorBase implements OnInit
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| [widget](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.ts#L46-L46>) (required) | `Widget` | Input for the widget definition. It is required to retrieve the component factory to instantiate the widget editor. |
| [widgetConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.ts#L40-L40>) (required) | `WidgetConfig` | Input for the widget instance configuration. It is used to populate the widget editor. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [closed](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.ts#L52-L52>) | `WidgetConfig \| undefined` | Emits the edited widget instance configuration if the user confirms by saving, or `undefined` if the user cancels the dialog. |
| [editorSetupCompleted](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.ts#L57-L57>) | `void` | Emits when the editor instantiation is completed. |
| [widgetConfigChange](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.ts#L40-L40>) (required) | `WidgetConfig` | Input for the widget instance configuration. It is used to populate the widget editor. |

### Widget renderer

The `SiWidgetRendererComponent` is a presentational (dumb) component that renders a single widget instance from a `WidgetConfig`, without the surrounding dashboard or grid infrastructure. It takes the exact `Widget` definition to render and delegates the actual rendering to the widget host.

Use it to display an individual widget outside of a flexible dashboard, for example in kiosk mode or within a custom layout such as a carousel. The component is a self-contained widget cell that can be placed anywhere a single widget needs to be shown.

It requires two inputs: the `widgetConfig` describing the widget instance to render and the matching `widget` definition. The `widget` must match the config's `widgetId`.

```
<!-- Render a single widget instance -->
<si-widget-renderer [widgetConfig]="widgetConfig" [widget]="widget" />
```

### [SiWidgetRendererComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-renderer/si-widget-renderer.component.ts#L35-L44>)

**Kind:** component

**Selector:** `si-widget-renderer`

```
import { SiWidgetRendererComponent } from '@siemens/dashboards-ng';
```

A presentational (dumb) component that renders a single widget instance from a [WidgetConfig](<index.html#t:WidgetConfig>) using the provided [Widget](<index.html#t:Widget>) definition. It delegates the actual rendering to the SiWidgetHostComponent.

**Intended Usage**

This component renders an individual widget outside of a dashboard or grid, without requiring manual host wiring. It is a self-contained widget cell that can be placed anywhere a single widget needs to be shown, for example in kiosk mode or within a custom layout such as a carousel.

**Example**

```html
<!-- Render a single widget instance -->
<si-widget-renderer [widgetConfig]="widgetConfig" [widget]="widget" />
```

```
component SiWidgetRendererComponent
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| [widget](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-renderer/si-widget-renderer.component.ts#L43-L43>) (required) | `Widget` | The [Widget](<index.html#t:Widget>) definition used to render the given [widgetConfig](<index.html#SiWidgetRendererComponent.widgetConfig>). It must match the config's `widgetId`. |
| [widgetConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/widget-renderer/si-widget-renderer.component.ts#L37-L37>) (required) | `WidgetConfig` | The configuration of the widget instance to render. |

### Security considerations

Widgets can be loaded via Module Federation, Native Federation or as web components from a URL. The loaded code is executed in your application. Only register widget factories that point to trusted sources.

### Types Documentation

### [Config](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/configuration.ts#L14-L16>)

**Kind:** type alias

```
import type { Config } from '@siemens/dashboards-ng';
```

Dashboard configuration object. Inject globally using the [SI\_DASHBOARD\_CONFIGURATION](<../../../api/siemens/dashboards-ng/types/SI_DASHBOARD_CONFIGURATION/index.html#t:SI_DASHBOARD_CONFIGURATION>) or configure individual dashboard instances.

```
type Config = {
  grid?: GridConfig;
}
```

### [DashboardToolbarItem](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L42-L43>)

**Kind:** type alias

```
import type { DashboardToolbarItem } from '@siemens/dashboards-ng';
```

Union type for all possible items in the dashboard toolbar.

```
type DashboardToolbarItem = DashboardToolbarItemAction | DashboardToolbarItemRouterLink | DashboardToolbarItemLink
```

### [GridConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/gridstack.model.ts#L12-L17>)

**Kind:** interface

```
import type { GridConfig } from '@siemens/dashboards-ng';
```

Configuration object for the si-grid component, including the options of gridstack.

```
interface GridConfig
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [gridStackOptions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/gridstack.model.ts#L16-L16>) (optional) | `GridStackOptions` | The configuration options of gridstack. |

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

### [Widget](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L17-L67>)

**Kind:** interface

```
import type { Widget } from '@siemens/dashboards-ng';
```

Widgets describe the entries within the widget catalog and holds all default configuration and factory functionality to instantiate a widget instance, represented as [WidgetConfig](<index.html#t:WidgetConfig>) objects.

```
interface Widget
```

#### Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L46-L46>) (optional) | `TranslatableString` |  | Optional translatable badge text displayed next to the widget name in the catalog, for example, "Requires license" when creation is disabled with `maxInstances: 0`. Consumer badges use the info style. The built-in added badge takes precedence when a positive instance limit has been reached. |
| [componentFactory](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L50-L50>) | `WidgetComponentFactory` |  | The factory to instantiate a widget instance component that is added to the dashboard. |
| [defaults](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L52-L64>) (optional) | `Pick<WidgetConfig, "width" \| "height" \| "minWidth" \| "minHeight" \| "heading" \| "headingIcon" \| "expandable" \| "immutable" \| "image" \| "accentLine">` |  | Optional default values that can be set to widget instances. |
| [description](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L25-L25>) (optional) | `TranslatableString` |  | An optional description that is visible in the widget catalog. |
| [iconClass](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L48-L48>) (optional) | `string` |  | A CSS icon class that specifies the widget icon, displayed in the catalog. |
| [id](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L19-L19>) | `string` |  | A unique id of the widget. |
| [maxInstances](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L39-L39>) (optional) | `number` | `undefined` | Maximum number of instances of this widget that can be added through the catalog.<br><br>• `undefined` (default): unlimited instances.<br><br>• `0`: creation is disabled, but the widget stays visible in the catalog.<br><br>• `n > 0`: creation is allowed until `n` instances with the same `widgetId` exist on the dashboard. Once the limit is reached, the catalog entry is disabled and marked as added.<br><br>@remarks: This limit applies to the catalog only. It does not restrict programmatic calls to `addWidgetInstance()`. |
| [name](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L23-L23>) | `TranslatableString` |  | The name of the widget that is presented in the widget catalog. |
| [payload](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L66-L66>) (optional) | `any` |  | Optional default payload object that is copied into every widget instance [WidgetConfig](<index.html#t:WidgetConfig>). |
| [version](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L21-L21>) (optional) | `string` |  | An optional version string. |

### [WidgetConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L167-L232>)

**Kind:** interface

```
import type { WidgetConfig } from '@siemens/dashboards-ng';
```

A [WidgetConfig](<index.html#t:WidgetConfig>) holds the configuration of a widget instance component that is visible on a dashboard. It can be persisted and used to restore a dashboards state.

```
interface WidgetConfig
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [accentLine](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L231-L231>) (optional) | `AccentLineType` | Optional type of the accent line. |
| [actionBarViewType](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L221-L221>) (optional) | `ViewType` |  |
| [expandable](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L210-L210>) (optional) | `boolean` | Defines whether the widget instance component can be expanded and enlarged over the dashboard. |
| [heading](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L206-L206>) (optional) | `TranslatableString` | grid item header text. |
| [headingIcon](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L208-L208>) (optional) | `string \| Record<string, string>` | Icon name or a single-entry map of camelCase icon name to SVG data URI. |
| [height](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L186-L186>) (optional) | `number` | Height of the grid item, where number represents how many rows it takes. (default?: 1) |
| [id](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L169-L169>) | `string` | A unique id of a widget instance |
| [image](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L227-L227>) (optional) | `WidgetImage` | Optional configuration for an image to be displayed on the widget instance. |
| [immutable](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L223-L223>) (optional) | `boolean` |  |
| [isNotRemovable](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L222-L222>) (optional) | `boolean` |  |
| [minHeight](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L202-L202>) (optional) | `number` | minimum height allowed during resize/creation (default?: undefined = un-constrained) |
| [minWidth](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L198-L198>) (optional) | `number` | minimum width allowed during resize/creation (default?: undefined = un-constrained) |
| [payload](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L212-L212>) (optional) | `any` | A widget specific payload object. Placeholder to pass in additional configuration. |
| [setupPending](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L220-L220>) (optional) | `boolean` | If true, the widget host renders a placeholder and waits for explicit configuration before instantiating the widget instance component.<br><br>Indicates that initial setup by the user is still pending. The flag flips to `false` once the setup has been completed. |
| [version](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L178-L178>) (optional) | `string` | Optionally, the version widget description that was used to create the widget config. |
| [widgetId](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L174-L174>) | `string` | The id of the widget descriptor that was used to instantiate the `WidgetConfig` and the widget instance component. |
| [width](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L182-L182>) (optional) | `number` | Width of the grid item, where number represents how many columns it spans (default?: 1) |
| [x](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L190-L190>) (optional) | `number` | Grid item position on x axis of the grid (default?: 0) |
| [y](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L194-L194>) (optional) | `number` | Grid item position on y axis of the grid (default?: 0) |

### [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](<../../../api/siemens/element-ng/types/_entrypoints/menu/MenuItem/index.html#t:MenuItem>)

• for [SiContentActionBarComponent](<../../../api/siemens/element-ng/components/SiContentActionBarComponent/index.html#SiContentActionBarComponent>) use [@siemens/element-ng/menu\#MenuItem](<../../../api/siemens/element-ng/types/_entrypoints/menu/MenuItem/index.html#t:MenuItem>) 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](<index.html#SiFlexibleDashboardComponent>) use [@siemens/dashboards-ng\#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. |

### [WidgetComponentFactory](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L70-L71>)

**Kind:** type alias

```
import type { WidgetComponentFactory } from '@siemens/dashboards-ng';
```

Factory type that is either a [WidgetComponentTypeFactory](<index.html#t:WidgetComponentTypeFactory>), [FederatedModule](<index.html#t:FederatedModule>), [FederatedBridgeModule](<index.html#t:FederatedBridgeModule>) or [WebComponent](<index.html#t:WebComponent>).

```
type WidgetComponentFactory = WidgetComponentTypeFactory | FederatedModule | WebComponent | FederatedBridgeModule
```

### [DashboardToolbarItemAction](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L11-L17>)

**Kind:** interface

```
import type { DashboardToolbarItemAction } from '@siemens/dashboards-ng';
```

Interface representing an action item in the dashboard toolbar.

```
interface DashboardToolbarItemAction
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L16-L16>) | `(grid: SiGridComponent) => void` | Action that called when the item is triggered. |
| [label](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L14-L14>) | `TranslatableString` | Label that is shown to the user. |
| [type](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L12-L12>) | `"action"` |  |

### [DashboardToolbarItemRouterLink](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L20-L28>)

**Kind:** interface

```
import type { DashboardToolbarItemRouterLink } from '@siemens/dashboards-ng';
```

Interface representing a router link item in the dashboard toolbar.

```
interface DashboardToolbarItemRouterLink
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [extras](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L27-L27>) (optional) | `NavigationExtras` | Navigation extras that are passed to the [RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [label](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L23-L23>) | `TranslatableString` | Label that is shown to the user. |
| [routerLink](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L25-L25>) | `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/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L21-L21>) | `"router-link"` |  |

### [DashboardToolbarItemLink](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L31-L39>)

**Kind:** interface

```
import type { DashboardToolbarItemLink } from '@siemens/dashboards-ng';
```

Interface representing a link item in the dashboard toolbar.

```
interface DashboardToolbarItemLink
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [href](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L36-L36>) | `string` | The href property of the anchor. |
| [label](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L34-L34>) | `TranslatableString` | Label that is shown to the user. |
| [target](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L38-L38>) (optional) | `string` | The target property of the anchor. |
| [type](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/si-dashboard-toolbar.model.ts#L32-L32>) | `"link"` |  |

### [WidgetComponentTypeFactory](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L102-L102>)

**Kind:** type alias

```
import type { WidgetComponentTypeFactory } from '@siemens/dashboards-ng';
```

```
type WidgetComponentTypeFactory = CommonFactoryFields & (ModuleOptions | StandaloneOptions)
```

### [FederatedModule](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L109-L113>)

**Kind:** type alias

```
import type { FederatedModule } from '@siemens/dashboards-ng';
```

Factory configuration for loading widget components from a federated module. Supports both Module Federation and Native Federation patterns for micro-frontend architectures. Use this when the widget component is hosted in a separate, independently deployed application.

```
type FederatedModule = CommonFactoryFields &
  LoadRemoteModuleOptions & {
    factoryType: 'module-federation' | 'native-federation';
    [index: string]: any;
  }
```

### [WebComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L124-L128>)

**Kind:** type alias

```
import type { WebComponent } from '@siemens/dashboards-ng';
```

```
type WebComponent = CommonFactoryFields & {
  factoryType: 'web-component';
  url: string;
  [index: string]: any;
}
```

#### Index Signatures

| Name | Type | Description |
| --- | --- | --- |
| [\[index: string\]](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L127-L127>) | `any` |  |

### [FederatedBridgeModule](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L118-L122>)

**Kind:** type alias

```
import type { FederatedBridgeModule } from '@siemens/dashboards-ng';
```

Use this when having native federation shell and remote module is using module federation.

```
type FederatedBridgeModule = CommonFactoryFields &
  LoadRemoteBridgeOptions & {
    factoryType: 'native-federation-module-bridge';
    [index: string]: any;
  }
```

#### Index Signatures

| Name | Type | Description |
| --- | --- | --- |
| [\[index: string\]](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L121-L121>) | `any` |  |

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

**Kind:** type alias

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

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

### [WidgetImage](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L139-L161>)

**Kind:** interface

```
import type { WidgetImage } from '@siemens/dashboards-ng';
```

Image is used to configure an image to be displayed on a widget instance.

```
interface WidgetImage
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [alt](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L148-L148>) | `string` | The HTMLImageElement property [alt](<https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt#usage_notes>) provides fallback (alternate) text to display when the image specified by the \<img\> element is not loaded. |
| [dir](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L152-L152>) (optional) | `"horizontal" \| "vertical"` | Defines if an image is placed on top or start (left) of the card. |
| [objectFit](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L156-L156>) (optional) | `ObjectFit` | Sets the image [object-fit](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit>) CSS property. |
| [objectPosition](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L160-L160>) (optional) | `string` | Sets the image [object-position](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-position>) CSS property. |
| [src](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L143-L143>) | `string` | The image URL (See [\<img\>](<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#src>)). |

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

**Kind:** type alias

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

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

### [CommonFactoryFields](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L73-L81>)

**Kind:** type alias

```
type CommonFactoryFields = {
  componentName: string;
  editorComponentName?: string;
  /**
   * CSS class that is added to the modal dialog when component editor dialog is shown.
   * Provides the option to change the size if the dialog.
   */
  editorModalClass?: string;
}
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [componentName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L74-L74>) | `string` |  |
| [editorComponentName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L75-L75>) (optional) | `string` |  |
| [editorModalClass](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L80-L80>) (optional) | `string` | CSS class that is added to the modal dialog when component editor dialog is shown. Provides the option to change the size if the dialog. |

### [ModuleOptions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L89-L93>)

**Kind:** type alias

Use when component is not standalone and part of a module

```
type ModuleOptions = WidgetComponentTypeBaseConfig & {
  moduleName: string;
  moduleLoader: (name: string) => Promise<any>;
  componentLoader?: never;
}
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [componentLoader](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L92-L92>) (optional) | `undefined` |  |
| [factoryType](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L84-L84>) (optional) | `"default"` |  |
| [moduleLoader](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L91-L91>) | `(name: string) => Promise<any>` |  |
| [moduleName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L90-L90>) | `string` |  |

### [StandaloneOptions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L96-L100>)

**Kind:** type alias

Use when component is standalone

```
type StandaloneOptions = WidgetComponentTypeBaseConfig & {
  componentLoader: <T = unknown>(componentName: string) => Promise<Type<T>>;
  moduleName?: never;
  moduleLoader?: never;
}
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [componentLoader](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L97-L97>) | `<T = unknown>(componentName: string) => Promise<Type<T>>` |  |
| [factoryType](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L84-L84>) (optional) | `"default"` |  |
| [moduleLoader](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L99-L99>) (optional) | `undefined` |  |
| [moduleName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L98-L98>) (optional) | `undefined` |  |

### [LoadRemoteModuleOptions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L404-L405>)

**Kind:** type alias

```
import type { LoadRemoteModuleOptions } from '@siemens/dashboards-ng';
```

The Remote Module definition is based on `@angular-architects`. We take it over into this file to prevent adding a hard dependency.

```
type LoadRemoteModuleOptions = LoadRemoteModuleScriptOptions | LoadRemoteModuleEsmOptions | LoadRemoteModuleManifestOptions
```

### [LoadRemoteBridgeOptions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L411-L419>)

**Kind:** type alias

```
import type { LoadRemoteBridgeOptions } from '@siemens/dashboards-ng';
```

Definition is based on `@module-federation/enhanced` loadRemote options. We take it over into this file to prevent adding a hard dependency.

```
type LoadRemoteBridgeOptions = {
  id: string;
  options?:
    | {
        loadFactory?: boolean | undefined;
        from: 'build' | 'runtime';
      }
    | undefined;
}
```

### [ObjectFit](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L134-L134>)

**Kind:** type alias

```
import type { ObjectFit } from '@siemens/dashboards-ng';
```

ObjectFit configuration options for a widget image.

See: [https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit](<https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit>)

```
type ObjectFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'
```

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

**Kind:** type alias

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

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

### [WidgetComponentTypeBaseConfig](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L83-L86>)

**Kind:** type alias

```
type WidgetComponentTypeBaseConfig = {
  factoryType?: 'default';
  [index: string]: any;
}
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [factoryType](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L84-L84>) (optional) | `"default"` |  |

#### Index Signatures

| Name | Type | Description |
| --- | --- | --- |
| [\[index: string\]](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L85-L85>) | `any` |  |

### [LoadRemoteModuleScriptOptions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L421-L431>)

**Kind:** type alias

```
import type { LoadRemoteModuleScriptOptions } from '@siemens/dashboards-ng';
```

```
type LoadRemoteModuleScriptOptions = {
  type?: 'script';
  remoteEntry?: string;
  remoteName: string;
  exposedModule: string;
  /**
   * Optional nonce value applied to the script element for Content Security Policy (CSP) support.
   * Supported in Module Federation v21.2.0+; safely ignored by earlier versions.
   */
  nonce?: string;
}
```

### [LoadRemoteModuleEsmOptions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L433-L437>)

**Kind:** type alias

```
import type { LoadRemoteModuleEsmOptions } from '@siemens/dashboards-ng';
```

```
type LoadRemoteModuleEsmOptions = {
  type: 'module';
  remoteEntry: string;
  exposedModule: string;
}
```

### [LoadRemoteModuleManifestOptions](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L439-L443>)

**Kind:** type alias

```
import type { LoadRemoteModuleManifestOptions } from '@siemens/dashboards-ng';
```

```
type LoadRemoteModuleManifestOptions = {
  type: 'manifest';
  remoteName: string;
  exposedModule: string;
}
```

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