global-context/core/global-context-config.component.ts
GlobalContextConfigComponent
Presentation + state coordination for the widget's Global Context controls.
config input.ConfigurationControlsComponent.GlobalContextState when user changes either the tab
(refreshOption) or any control value within the current tab.| changeDetection | ChangeDetectionStrategy.OnPush |
| providers |
GlobalContextConfigStoreService
|
| selector | c8y-global-context-config |
| standalone | true |
| imports |
ReactiveFormsModule
TooltipModule
PopoverModule
CollapseModule
ConfigurationControlsComponent
|
| templateUrl | ./global-context-config.component.html |
Properties |
|
Methods |
Inputs |
Outputs |
constructor()
|
| configInput |
Type : GlobalContextState
|
| Required : true |
Default value : { alias: 'config' }
|
| historySnapshotInput |
Type : GlobalContextState | null
|
Default value : null, { alias: 'historySnapshot' }
|
| isLoading |
Default value : false
|
| liveSnapshotInput |
Type : GlobalContextState | null
|
Default value : null, { alias: 'liveSnapshot' }
|
| widgetControls |
Type : WidgetControls
|
| Required : true |
| globalContextChange |
Type : GlobalContextState
|
| refresh |
Type : void
|
| onConfigurationChanges | ||||||
onConfigurationChanges(changes: Partial
|
||||||
|
Parameters :
Returns :
void
|
| Readonly activeConfig |
Type : unknown
|
Default value : computed(() => this.store.activeConfig())
|
| Readonly historyConfig |
Type : unknown
|
Default value : computed(() => this.store.historyState())
|
| isExpanded |
Type : unknown
|
Default value : false
|
| Readonly liveConfig |
Type : unknown
|
Default value : computed(() => this.store.liveState())
|
| Readonly refreshOption |
Type : unknown
|
Default value : computed(() => this.store.refreshOption())
|
| Readonly settings |
Type : unknown
|
Default value : computed(() => this.store.settings())
|
| Readonly supportedModes |
Type : unknown
|
Default value : computed(
() => this.widgetControls().supportedModes ?? [REFRESH_OPTION.LIVE, REFRESH_OPTION.HISTORY]
)
|
<c8y-configuration-controls
[settings]="settings()"
[controlsDisplayMode]="'horizontal'"
[tabsOutletName]="'verticalTabOutletForConfigurationModes'"
[activeMode]="refreshOption()"
[liveContext]="liveConfig()"
[historyContext]="historyConfig()"
[supportedModes]="supportedModes()"
(contextChange)="onConfigurationChanges($event)"
(refreshOptionChange)="onConfigurationChanges({ refreshOption: $event })"
></c8y-configuration-controls>