TreeNodeData
Defined in: src/components/controls/TreeView/TreeView.types.ts:18
Generic tree node data structure.
Properties
Section titled “Properties”children?
Section titled “children?”
optionalchildren?:TreeNodeData[]
Defined in: src/components/controls/TreeView/TreeView.types.ts:26
Child nodes (empty array or undefined for leaf nodes)
optionaldata?:Record<string,unknown>
Defined in: src/components/controls/TreeView/TreeView.types.ts:36
Additional data attached to this node
disabled?
Section titled “disabled?”
optionaldisabled?:boolean
Defined in: src/components/controls/TreeView/TreeView.types.ts:28
Whether this node is disabled
draggable?
Section titled “draggable?”
optionaldraggable?:boolean
Defined in: src/components/controls/TreeView/TreeView.types.ts:30
Whether this node can be dragged
droppable?
Section titled “droppable?”
optionaldroppable?:boolean
Defined in: src/components/controls/TreeView/TreeView.types.ts:32
Whether this node can accept children via drag-and-drop
optionalicon?:ReactNode
Defined in: src/components/controls/TreeView/TreeView.types.ts:24
Optional icon rendered before the label
id:
string
Defined in: src/components/controls/TreeView/TreeView.types.ts:20
Unique identifier for this node
label:
string
Defined in: src/components/controls/TreeView/TreeView.types.ts:22
Display label
renamable?
Section titled “renamable?”
optionalrenamable?:boolean
Defined in: src/components/controls/TreeView/TreeView.types.ts:34
Whether this node can be renamed inline