Skip to main content
cngx-src documentation

CngxStatRegistry

Interface

projects/common/data/display/stat/stat.token.ts

Referenced by#

Import#

import { CngxStatRegistry } from '@cngx/common/data'

Description#

Slot-registration contract a CngxStat exposes to its projected slot directives. Each slot registers its generated id on init and withdraws it on destroy; the molecule derives the combined aria-labelledby from the live registration set. Fronted by a DI token (not the concrete CngxStat class) so the slots stay decompose-safe - the ejected skin talks to the same token the library defines.

Index#

Methods#

register#void
register(kind: CngxStatSlotKind, id: string)

Register (or replace) the id contributed by kind.

@paramidstring
unregister#void
unregister(kind: CngxStatSlotKind)

Withdraw the id contributed by kind.