global-context/core/global-context-widget-config.component.ts
Widget configuration component for time context settings.
Allows widgets to either sync with dashboard-level time settings (dashboard mode) or use independent time controls (widget mode). When in widget mode, displays additional configuration controls for time range, aggregation, and refresh settings.
OnInit
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | c8y-global-context-widget-config |
| standalone | true |
| imports |
ReactiveFormsModule
ConfigContextSelectorComponent
GlobalContextConfigComponent
C8yTranslatePipe
PopoverModule
|
| template | |
Properties |
|
Methods |
Inputs |
Outputs |
Accessors |
constructor()
|
| configInput |
Type : GlobalContextState | null
|
| Required : true |
Default value : { alias: 'config' }
|
| isLoadingInput |
Default value : false, { alias: 'isLoading' }
|
| widgetControlsInput |
Type : WidgetControls
|
| Required : true |
Default value : { alias: 'widgetControls' }
|
| displayModeChange |
Type : GlobalContextDisplayMode
|
| globalContextChange |
Type : GlobalContextState
|
| refresh |
Type : void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| onGlobalContextChange | ||||||
onGlobalContextChange(newConfig: GlobalContextState)
|
||||||
|
Parameters :
Returns :
void
|
| Readonly displayModeSig |
Type : unknown
|
Default value : signal<GlobalContextDisplayMode>(GLOBAL_CONTEXT_DISPLAY_MODE.DASHBOARD)
|
| Protected form |
Type : FormGroup
|
| Readonly GLOBAL_CONTEXT_DISPLAY_MODE |
Type : unknown
|
Default value : GLOBAL_CONTEXT_DISPLAY_MODE
|
| liveSnapshot |
getliveSnapshot()
|
| historySnapshot |
gethistorySnapshot()
|