Skip to main content
Version: 1.0.4

ITreeNode

@spartanfx/react v1.0.4


@spartanfx/react / ITreeNode

Interface: ITreeNode<T>

Internal tree node structure representing a normalized tree item.

Type Parameters

T

T = any

Properties

PropertyTypeDescription
childrenITreeNode<T>[]Array of child nodes
depthnumberDepth level in the tree (0 for root nodes)
idstringUnique identifier for the node
itemTOriginal item data
labelstringDisplay label for the node
parentIdstringID of the parent node, or null if this is a root node