File

global-context/integration/widget-wrapper/global-context-widget-wrapper.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor()

Inputs

config
Type : GlobalContextState
Default value : {}
controlLinks
Type : LinkStatesMap
Default value : {}
dashboardChildForLegacy
Type : DashboardChildComponent
displayMode
Type : WidgetDisplayMode
Default value : WIDGET_DISPLAY_MODE.INLINE
isLoading
Default value : false
widgetControlsConfig
Type : WidgetControls | WidgetControlsPresetConfig
Required :  true
Default value : { alias: 'widgetControls' }

Outputs

globalContextChange
Type : EventEmitter

Methods

ngOnInit
ngOnInit()
Returns : void
onGlobalContextChange
onGlobalContextChange(context: GlobalContextState)
Parameters :
Name Type Optional
context GlobalContextState No
Returns : void
onRefresh
onRefresh()
Returns : void
pauseAutoRefresh
pauseAutoRefresh()

Pause auto-refresh and unlink all controls from global context. Useful when user is interacting with the widget (e.g., scrolling through a list) and you want to prevent automatic updates.

This does two things:

  1. Sets isAutoRefreshEnabled to false (stops the auto-refresh timer)
  2. Unlinks all controls (dateTimeContext, aggregation, isAutoRefreshEnabled) from global context as they work as a unified group
Returns : void
resumeAutoRefresh
resumeAutoRefresh()

Resume auto-refresh and re-link all controls to global context. Useful when user has finished interacting with the widget (e.g., scrolled back to top) and you want to re-enable automatic updates.

This does two things:

  1. Sets isAutoRefreshEnabled to true (starts the auto-refresh timer)
  2. Links all controls (dateTimeContext, aggregation, isAutoRefreshEnabled) to global context as they work as a unified group
Returns : void
toggleAllLinks
toggleAllLinks(isLinked: boolean, suppressRefresh?: boolean, suppressEmit?: boolean)

Directly toggle all link controls to linked or unlinked state. All controls are always toggled together as a unified group.

Parameters :
Name Type Optional Description
isLinked boolean No
  • True to link all controls, false to unlink all controls
suppressRefresh boolean Yes
  • True to prevent refresh emission (data already loaded)
suppressEmit boolean Yes
  • True to prevent configuration change emission
Returns : void
updateDateTimeContext
updateDateTimeContext(dateTimeContext: any)

Update dateTimeContext for internal widget interactions (e.g., slider drag). This bypasses the config propagation logic and directly updates the inline component state.

Parameters :
Name Type Optional
dateTimeContext any No
Returns : void

Properties

Readonly GLOBAL_CONTEXT_DISPLAY_MODE
Type : unknown
Default value : GLOBAL_CONTEXT_DISPLAY_MODE
globalContextInlineComponent
Type : GlobalContextInlineComponent
Decorators :
@ViewChild(GlobalContextInlineComponent)
internalConfig
Type : WritableSignal<GlobalContextState>
Default value : signal({})
Readonly WIDGET_DISPLAY_MODE
Type : unknown
Default value : WIDGET_DISPLAY_MODE
widgetBodyRef
Type : TemplateRef<unknown>
Decorators :
@ContentChild('widgetBody')
widgetControls
Type : unknown
Default value : computed(() => resolveWidgetControlsInput(this.widgetControlsConfig()))
widgetHeaderRef
Type : TemplateRef<unknown>
Decorators :
@ContentChild('widgetHeader')

results matching ""

    No results matching ""