Skip to main content
cngx-src documentation

withTocTemplates

Functionui/tocv0.1.0

projects/ui/toc/config/features.ts

Description#

Register a global default item template. Resolves after a per-instance *cngxTocItem slot and before the built-in plain-label rendering, so every un-slotted toc renders the same custom item markup.

Signature#

withTocTemplates(payload: NonNullable)

Parameters#

@parampayloadNonNullable

Returns#

CngxTocConfigFeature