SiWidgetDefaultIdProvider Service documentation¶
provided in root
✓
The default implementation of the SiWidgetIdProvider which generates random widget ids.
Attributes and Methods¶
| Name | Type | Default | Description |
|---|---|---|---|
| generateWidgetId(...) ¶ | (widget: Omit<WidgetConfig, "id">, dashboardId: string) => string | Generates a unique widget id. The method uses crypto.randomUUID() which generates a RFC4122 version 4 UUID (a cryptographically secure random identifier with 122 bits of entropy).Returns A unique widget id string in the format crypto.randomUUID() .Parameters
|
Types Documentation¶
| Abstract class to provide widget id generation logic. | |||||||
|---|---|---|---|---|---|---|---|
| |||||||
|
| 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. | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| Image is used to configure an image to be displayed on a widget instance. | ||||||
|---|---|---|---|---|---|---|
|
| ObjectFit configuration options for a widget image. See https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit |
|---|
Except where otherwise noted, content on this site is licensed under MIT License.