setupWidgetInstance Type documentation¶
Function | |||||
|---|---|---|---|---|---|
|
Types Documentation¶
| Every widget component implementation needs to implement the WidgetInstance interface. It provides the interface between the component implementation and the dashboard. | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
| Factory type that is either a WidgetComponentTypeFactory , FederatedModule , FederatedBridgeModule or WebComponent . |
|---|
| A 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. | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| Event type used when a widget config is changed from within a widget instance. For example, a widget instance component may assign and change the primary actions. It needs to publish the change so that the UI in the hosting dashboard card can be updated. |
|---|
| 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. |
|---|
| Use this when having native federation shell and remote module is using module federation. |
|---|
|
|
| Represents a menu item that navigates using the Angular Router. Requires a configured Angular Router. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
| The Remote Module definition is based on @angular-architects . We take it over into this file to prevent adding a hard dependency. |
|---|
| Definition is based on @module-federation/enhanced loadRemote options. We take it over into this file to prevent adding a hard dependency. |
|---|
| 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. |
|---|
| Image is used to configure an image to be displayed on a widget instance. | ||||||
|---|---|---|---|---|---|---|
|
|
Property Badge that is rendered after the label. |
|---|
Property Color of the badge (not iconBadge). |
|---|
Property Whether the menu item id disabled. |
|---|
icon? Property Optional icon that will be rendered before the label. |
|---|
Property Badge (always red) that is attached to the icon. If value===true, an empty red dot will be rendered. |
|---|
id? Property ID that will be attached to the DOM node. |
|---|
| 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. |
|---|
Property Label that is shown to the user. |
|---|
| Implement and provide this to an SiMenuFactoryComponent to receive trigger events. | |||||||
|---|---|---|---|---|---|---|---|
| |||||||
|
| ObjectFit configuration options for a widget image. See https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit |
|---|
Translatable import imported from @siemens/element-translate-ng |
|---|
| Used in events emitted from SiLinkActionService | |||
|---|---|---|---|
|
|
| |||||||||||||||||||||
| |||||||||||||||||||||
|
| |||||||
| |||||||
|
Except where otherwise noted, content on this site is licensed under MIT License.