File

global-context/integration/global-context-connector/global-context-connector.component.ts

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor()

Inputs

config
Type : GlobalContextState
Required :  true
controls
Type : PresetName | PresetDefinition
Default value : PRESET_NAME.DEFAULT
dashboardChild
Type : DashboardChildComponent
Required :  true
emitRefresh
Type : boolean
Default value : true

When false, refresh events are not emitted as configChange - only user-initiated state changes

isLoading
Type : boolean
Default value : false
linked
Type : boolean | undefined
Default value : undefined

Outputs

configChange
Type : { context: GlobalContextState; diff: GlobalContextState }
linkedChange
Type : boolean
refresh
Type : void

Methods

onLinkToggle
onLinkToggle(linked: boolean)
Parameters :
Name Type Optional
linked boolean No
Returns : void
onLocalChange
onLocalChange(event: literal type)
Parameters :
Name Type Optional
event literal type No
Returns : void
onLocalRefresh
onLocalRefresh()
Returns : void

Properties

hasActiveControls
Type : unknown
Default value : computed(() => { const controlsInput = this.controls(); if (!controlsInput) { return true; } const presetDef = typeof controlsInput === 'string' ? CONTROL_PRESETS[controlsInput] : controlsInput; const dashboardControls = presetDef?.[GLOBAL_CONTEXT_DISPLAY_MODE.DASHBOARD]; if (!dashboardControls) { return true; } const refreshOption = this.config()?.refreshOption || REFRESH_OPTION.LIVE; return applyModeConstraints(dashboardControls, refreshOption).length > 0; })
isLinked
Type : unknown
Default value : signal(true)

results matching ""

    No results matching ""