Skip to main content
cngx-src documentation

CngxTocItemContext

Interface

projects/ui/toc/toc.types.ts

Referenced by#

Import#

import { CngxTocItemContext } from '@cngx/ui/toc'

Description#

Template context handed to the *cngxTocItem slot and to a CNGX_TOC_CONFIG.templates.item default. $implicit is the item so let-item binds it positionally; active mirrors the item's aria-current state; depth is the zero-based nesting level for indentation-aware custom markup.

Index#

Instance Properties#

$implicit#CngxTocItem
Readonly

The item being rendered (let-item).

active#boolean
Readonly

true when this item is the active section.

depth#number
Readonly

Zero-based nesting depth.