context-dashboard/context-dashboard.model.ts
Properties |
|
[key: string]:
|
Any other information that should be stored here. |
config |
config:
|
Type : literal type
|
Optional |
Whatever should be added to the configuration when a widget is created. |
device |
device:
|
Type : literal type
|
Optional |
The selected device or group (note: naming is inconsistent as group was added later but must stay for already implemented widgets) |
displaySettings |
displaySettings:
|
Type : WidgetDisplaySettings
|
Optional |
Settings that are injected in any displaying component. |
export |
export:
|
Type : function
|
Optional |
Method to export the widget configuration during dashboard export to a json file. It enhances the configuration with
additional data that can be used later by the |
hideTarget |
hideTarget:
|
Type : boolean
|
Optional |
Hides the asset-selector tab in the widget configuration. This is useful for device-type dashboards where the user should not be able to select a device. |
import |
import:
|
Type : function
|
Optional |
Method to import the widget configuration during dashboard import from a json file. It restores the widget configuration
with data exported by the |
settings |
settings:
|
Type : WidgetSettings
|
Optional |
Settings that define how the default config component is displayed. They are static and will not be saved. |