An optional, but recommended dashboard id that is used in persistence and passed to the widget store for saving and loading data. dashboardId: InputSignal <(undefined | string )> = ... |
Sets the grid into editable mode, in which the widget instances can be moved, resized, removed or new ones added. editable: ModelSignal <boolean > = false |
This is the internal owner of the current editable state and is used to track if editable or not. Not editable can be changed by either calling the edit() api method or by setting the editable input. When setting the input, the ngOnChanges(...) hook is used to call the edit() method. Similar, to get from editable to not editable, cancel() or save() is used and can be triggered from ngOnChanges(...) . editableInternal: boolean = false |
When the user clicks edit on a widget instance, an editor need to appear and the widget editor component need to be loaded. When the grid is used standalone, it takes care and opens a modal dialog and loads the configured widget editor component. When the grid is used in a container like the flexible dashboard, the container manages where the widget instance editor is displayed. In this case this options prevents the grid from showing the editor in the dialog, and emits on widgetInstanceEdit on clicking the widget edit action. emitWidgetInstanceEditEvents: InputSignal <boolean > = false |
Configuration options for a grid instance. Default is the optional value from the SI_DASHBOARD_CONFIGURATION . gridConfig: InputSignal <(undefined | GridConfig )> = inject(SI_DASHBOARD_CONFIGURATION)?.grid |
gridService: SiGridService = ... |
gridStackWrapper: Signal <SiGridstackWrapperComponent > = viewChild.required(SiGridstackWrapperComponent) |
Option to turn off the loading spinner on save and load operations. hideProgressIndicator: InputSignal <boolean > = false |
initialLoad: boolean = true |
Indication for load and save operations. isLoading: BehaviorSubject <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 . isModified: OutputEmitterRef <boolean > = ... |
Service used to indicate load and save indication. Deprecated: Use isLoading instead.
loadingService: SiLoadingService = inject(SiLoadingService) |
All widget instance configurations that are removed from the grid in edit mode. These instances are persistently removed on save or re-added again on cancel. markedForRemoval: WidgetConfig [] = [] |
modalService: SiModalService = ... |
Modified state that is emitted in the isModified output. Should only be changed using the setModified method. modified: boolean = false |
All widget instance configs that are on the grid by loading from the widget storage. Thus, these widget are persisted. persistedWidgetInstances: WidgetConfig [] = [] |
storeSubscription?: Subscription |
Widget instance configs that are added to the grid in edit mode, but not persisted yet, as the user did not confirm the modification by save. transientWidgetInstances: WidgetConfig [] = [] |
All widget configuration objects of the visible widget instances. visibleWidgetInstances$: BehaviorSubject <WidgetConfig []> = ... |
Provides the available widgets to the grid. When loading the widget configurations from the storage, we need to have the widget definition available to be able to create the widget instances on the grid. widgetCatalog: InputSignal <Widget []> = [] |
Emits to notify about edit events of widget instances. Only emits if emitWidgetInstanceEditEvents is set to true . widgetInstanceEdit: OutputEmitterRef <WidgetConfig > = ... |
Option to configure a custom widget instance editor dialog component. The component provides the editor hosting and the buttons to save and cancel. widgetInstanceEditorDialogComponent: InputSignal <(undefined | Type <SiWidgetInstanceEditorDialogComponent >)> = ... |
widgetStorage: SiWidgetStorage = ... |