@jimka/typescript-ui / component/tree / TreeNode
Interface: TreeNode
Defined in: src/typescript/lib/component/tree/TreeNode.ts:12
A node in a hierarchical tree data structure.
Pass an array of TreeNode objects to Tree.setNodes to populate the tree. Nodes with a non-empty children array render as expandable parents; nodes without children (or with an empty array) render as leaves.
Properties
children?
ts
optional children: TreeNode[];Defined in: src/typescript/lib/component/tree/TreeNode.ts:22
Child nodes nested under this node.
Remarks
Omit or pass an empty array for leaf nodes.
label
ts
label: string;Defined in: src/typescript/lib/component/tree/TreeNode.ts:15
The text label displayed for this node.