SiWidgetCatalogComponent documentation¶
selector
si-widget-catalog
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.
Input Properties¶
Name | Type | Default | Description |
---|---|---|---|
searchPlaceholder ¶ | TranslatableString | $localize`:@@DASHBOARD.WIDGET_LIBRARY.SEARCH_PLACEHOLDER:Search widget` | Placeholder text for the search input field in the widget catalog. |
Output Properties¶
Name | Type | Description |
---|---|---|
closed ¶ | (undefined | Omit <WidgetConfig , "id" >) | Emits when the catalog is closed , either by canceling or by adding or saving a widget configuration. On cancel undefined is emitted, otherwise the related widget configuration is emitted. |
Attributes and Methods¶
Name | Type | Default | Description |
---|---|---|---|
widgetCatalog ¶ | Widget [] | [] | 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. |
Types Documentation¶
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. |
---|
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. | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
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 |
---|
The Remote Module definition is based on @angular-architects . 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.