Skip to main content
cngx-src documentation

CngxTreetableFlatNode

Type Aliasdata-display/treetable

projects/data-display/treetable/models.ts

Referenced by#

Description#

A flattened representation of a single tree node, produced by flattenTree. All properties are readonly to prevent accidental mutation.

Alias of the @cngx/utils FlatTreeNode kernel type, so every flat node carries the ARIA metadata (posinset, setsize, plus label, disabled, and the node back-reference) alongside the original id / value / depth / hasChildren / parentIds fields.

Migration note. The alias widened the type: code that only reads FlatNode values (templates, nodeClicked handlers, trackBy) is unaffected, but code that constructs FlatNode literals (tests, custom data sources) must now supply the kernel fields (label, disabled, posinset, setsize, node) as well. Nodes produced by flattenTree always carry the full shape, with label fixed to ''.

Definition#

FlatTreeNode