API: Primitives
TreeNode
Interface reference for TreeNode.
Overview
- Kind: Interface
- Source: packages/primitives/src/tree/tree.types.ts:1
Declaration
interface TreeNode<T = unknown>
Properties
| Name | Type | Description |
|---|---|---|
id |
string |
|
label |
string |
|
children? |
TreeNode<T>[] |
|
hasChildren? |
boolean |
Declares that this node has children before they are known โ the entry point for lazy loading. When omitted, expandability is inferred from children. |
expanded? |
boolean |
|
disabled? |
boolean |
|
data? |
T |