Skip to content
Entangle UI v0.13.0

TreeNodeData

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

Generic tree node data structure.

optional children?: TreeNodeData[]

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

Child nodes (empty array or undefined for leaf nodes)


optional data?: Record<string, unknown>

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

Additional data attached to this node


optional disabled?: boolean

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

Whether this node is disabled


optional draggable?: boolean

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

Whether this node can be dragged


optional droppable?: boolean

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

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


optional icon?: 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


optional renamable?: boolean

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

Whether this node can be renamed inline