# SiFlexibleDashboardComponent documentation

**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](<../../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](<../../types/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](<../../../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](<../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`. |

#### Attributes and Methods

##### dashboard

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

**Modifiers:** readonly

**Type:** `Signal<SiDashboardComponent>`

**Default:** `viewChild.required<SiDashboardComponent>('dashboard')`

Property to access the dashboard component instance.

##### grid

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

**Modifiers:** readonly

**Type:** `Signal<SiGridComponent>`

**Default:** `viewChild.required<SiGridComponent>('grid')`

The grid component is the actual container for the widgets.

##### isDashboardVisible

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

**Modifiers:** readonly

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

**Default:** `computed(() => this.viewState() === 'dashboard')`

Returns: True, if the dashboard shows its widgets and not a catalog or and editor.

##### pageTitle

[Source for pageTitle](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L239-L249>)

**Modifiers:** readonly

**Type:** `Signal<string | undefined>`

**Default:** `...`

The page title of the dashboard, which is either [SiFlexibleDashboardComponent.heading](<index.html#SiFlexibleDashboardComponent.heading>) for the default widget view or `DASHBOARD.WIDGET_EDITOR_DIALOG.TITLE` or 'DASHBOARD.WIDGET\_LIBRARY.TITLE' when adding new or editing widgets.

##### primaryEditActions$

[Source for primaryEditActions$](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L220-L222>)

**Modifiers:** readonly

**Type:** `BehaviorSubject<(MenuItem | DashboardToolbarItem)[]>`

**Default:** `...`

The primary action menu items shown in the edit mode of the dashboard.

##### secondaryEditActions$

[Source for secondaryEditActions$](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L227-L227>)

**Modifiers:** readonly

**Type:** `BehaviorSubject<(MenuItem | DashboardToolbarItem)[]>`

**Default:** `new BehaviorSubject<(MenuItem | DashboardToolbarItem)[]>([])`

The secondary action menu items shown in the edit mode of the dashboard. When all menu items are more than three, they will be placed in the secondary menu of the content action bar.

##### showWidgetCatalog

[Source for showWidgetCatalog](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.ts#L293-L315>)

Shows the widget catalog of the dashboard. If a widget instance is expanded it restores the widget instances before.

```
showWidgetCatalog(): void
```

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

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

### [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-L46>)

**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 | Description |
| --- | --- | --- |
| [componentFactory](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L29-L29>) | `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#L31-L43>) (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#L27-L27>) (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. |
| [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#L45-L45>) (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. |

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

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

• for [SiNavbarVerticalComponent](<../../../element-ng/components/SiNavbarVerticalComponent/index.html#SiNavbarVerticalComponent>) use [NavbarVerticalItem](<../../../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#L49-L50>)

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

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

**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#L210-L210>) (optional) | `AccentLineType` | Optional type of the accent line. |
| [actionBarViewType](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L200-L200>) (optional) | `ViewType` |  |
| [expandable](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L189-L189>) (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#L185-L185>) (optional) | `TranslatableString` | grid item header text. |
| [headingIcon](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L187-L187>) (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#L165-L165>) (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#L148-L148>) | `string` | A unique id of a widget instance |
| [image](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L206-L206>) (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#L202-L202>) (optional) | `boolean` |  |
| [isNotRemovable](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L201-L201>) (optional) | `boolean` |  |
| [minHeight](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L181-L181>) (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#L177-L177>) (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#L191-L191>) (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#L199-L199>) (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#L157-L157>) (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#L153-L153>) | `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#L161-L161>) (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#L169-L169>) (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#L173-L173>) (optional) | `number` | Grid item position on y axis of the grid (default?: 0) |

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

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

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

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

**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#L88-L92>)

**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#L103-L107>)

**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#L106-L106>) | `any` |  |

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

**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#L100-L100>) | `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#L118-L140>)

**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#L127-L127>) | `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#L131-L131>) (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#L135-L135>) (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#L139-L139>) (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#L122-L122>) | `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#L52-L60>)

**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#L53-L53>) | `string` |  |
| [editorComponentName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L54-L54>) (optional) | `string` |  |
| [editorModalClass](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L59-L59>) (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#L68-L72>)

**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#L71-L71>) (optional) | `undefined` |  |
| [factoryType](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L63-L63>) (optional) | `"default"` |  |
| [moduleLoader](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L70-L70>) | `(name: string) => Promise<any>` |  |
| [moduleName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L69-L69>) | `string` |  |

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

**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#L76-L76>) | `<T = unknown>(componentName: string) => Promise<Type<T>>` |  |
| [factoryType](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L63-L63>) (optional) | `"default"` |  |
| [moduleLoader](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L78-L78>) (optional) | `undefined` |  |
| [moduleName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L77-L77>) (optional) | `undefined` |  |

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

**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#L390-L398>)

**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#L113-L113>)

**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#L62-L65>)

**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#L63-L63>) (optional) | `"default"` |  |

#### Index Signatures

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

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

**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#L412-L416>)

**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#L418-L422>)

**Kind:** type alias

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

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