SiWidgetRendererComponent documentation¶
selector
si-widget-rendererA presentational (dumb) component that renders a single widget instance from a WidgetConfig using the provided 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
<!-- Render a single widget instance -->
<si-widget-renderer [widgetConfig]="widgetConfig" [widget]="widget" />
Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| widget | Widget | The Widget definition used to render the given widgetConfig . It must match the config's widgetId . | |
| widgetConfig | WidgetConfig | The configuration of the widget instance to render. |
Types Documentation¶
| 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. | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| Widgets describe the entries within the widget catalog and holds all default configuration and factory functionality to instantiate a widget instance, represented as WidgetConfig objects. | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
| 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. | ||||||
|---|---|---|---|---|---|---|
|
| Factory type that is either a WidgetComponentTypeFactory , FederatedModule , FederatedBridgeModule or WebComponent . |
|---|
| 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. |
|---|
| ObjectFit configuration options for a widget image. See https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit |
|---|
| 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. |
|---|
Except where otherwise noted, content on this site is licensed under MIT License.