Skip to main content
cngx-src documentation

FlatTreeNode

Interface

projects/utils/tree.ts

Referenced by#

Import#

import { FlatTreeNode } from '@cngx/utils'

Description#

Flat-projected node carrying all ARIA-relevant metadata. Produced by flattenTree in DFS order. IDs are stable across equivalent invocations so long as idFn (or default path-based id) is deterministic.

parentIds is the chain from root to the immediate parent (exclusive of self). Empty for root-level nodes.

Index#

Instance Properties#

depth#number
Readonly
disabled#boolean
Readonly
hasChildren#boolean
Readonly
Readonly
label#string
Readonly
node#CngxTreeNode
Readonly

Back-reference to the source tree node. Lets consumers reach children (e.g. cascade-select helpers) without a parallel DFS walk.

parentIds#unknown
Readonly
posinset#number
Readonly
setsize#number
Readonly
value#T
Readonly