ITreeNodeStatic Interface
A static, expansion-state-free snapshot of a tree node. Used internally by tree providers for structural operations where expansion state is irrelevant (e.g. building the hierarchy map, computing depths, and resolving parent-child relationships).
ITreeNode is the full runtime node including reactive isExpanded state. ITreeNodeStatic is a simpler snapshot used during data processing — before expansion state is applied.
import type { ITreeNodeStatic } from '@katlux/providers'
// Typically produced during raw data ingestion before expansion is resolved
const staticNode: ITreeNodeStatic = {
id: 42,
parentId: 10,
depth: 1,
hasChildren: true,
data: { id: 42, name: 'Category A', parentId: 10 }
}| Property | Type | Description |
|---|
| id | string | number | The unique identifier for the node. |
| parentId | string | number | null | The parent node's ID. null for root nodes. |
| depth | number | Nesting depth. 0 = root. |
| hasChildren | boolean | Whether any children exist for this node. |
| data | TDataRow | The original raw row object from the data source. |