Skip to main content
cngx-src documentation

FlatNode

Interface

projects/data-display/treetable/models.ts

Referenced by#

Import#

import { FlatNode } from '@cngx/data-display/treetable'

Description#

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

Index#

Instance Properties#

depth#number
Readonly

Zero-based nesting depth; root nodes have depth 0.

hasChildren#boolean
Readonly

true when the node has at least one child.

Readonly

Stable identifier for this node within the current tree.

parentIds#unknown
Readonly

Ordered list of ancestor IDs from root to direct parent. A root node has an empty array.

value#T
Readonly

The original data value.