Skip to content

TreeNodeData

Defined in: src/components/controls/TreeView/TreeView.types.ts:18

Generic tree node data structure.

Properties

children?

optional children: TreeNodeData[]

Defined in: src/components/controls/TreeView/TreeView.types.ts:26

Child nodes (empty array or undefined for leaf nodes)


data?

optional data: Record<string, unknown>

Defined in: src/components/controls/TreeView/TreeView.types.ts:36

Additional data attached to this node


disabled?

optional disabled: boolean

Defined in: src/components/controls/TreeView/TreeView.types.ts:28

Whether this node is disabled


draggable?

optional draggable: boolean

Defined in: src/components/controls/TreeView/TreeView.types.ts:30

Whether this node can be dragged


droppable?

optional droppable: boolean

Defined in: src/components/controls/TreeView/TreeView.types.ts:32

Whether this node can accept children via drag-and-drop


icon?

optional icon: ReactNode

Defined in: src/components/controls/TreeView/TreeView.types.ts:24

Optional icon rendered before the label


id

id: string

Defined in: src/components/controls/TreeView/TreeView.types.ts:20

Unique identifier for this node


label

label: string

Defined in: src/components/controls/TreeView/TreeView.types.ts:22

Display label


renamable?

optional renamable: boolean

Defined in: src/components/controls/TreeView/TreeView.types.ts:34

Whether this node can be renamed inline