Skip to main content
cngx-src documentation

CngxChartPanelRegistry

Interface

projects/ui/chart-panel/chart-panel.token.ts

Referenced by#

Import#

import { CngxChartPanelRegistry } from '@cngx/ui/chart-panel'

Description#

Title-registration contract the panel exposes to its projected title slot. The slot registers its generated id on init; the panel derives its aria-labelledby from it.

Fronted by a DI token rather than the concrete CngxChartPanel class so the slot stays decompose-safe - an ejected skin talks to the same token the library defines. Mirrors CNGX_STAT behind the cngxStat* slots.

Index#

Methods#

registerTitle#void
registerTitle(id: string)

Register the id contributed by the title slot.

@paramidstring
unregisterTitle#void
unregisterTitle(id: string)

Withdraw a previously registered title id. Takes the id rather than no argument so a destroy arriving after a replacement title already registered cannot clear the newer one.

@paramidstring