Skip to content

Interface: AddNodeOptions\<TRow\>

Defined in: src/tree-editor/commands/add-node.ts:3

Type Parameters

TRow

TRow

Properties

data

data: TRow

Defined in: src/tree-editor/commands/add-node.ts:9

The row data.


id

id: string

Defined in: src/tree-editor/commands/add-node.ts:5

Id for the new node. Must be unique within the tree.


index?

optional index?: number

Defined in: src/tree-editor/commands/add-node.ts:14

Insertion index within the parent’s childIds (or rootIds when parentId is null). When omitted or out of range, the node is appended.


parentId

parentId: string | null

Defined in: src/tree-editor/commands/add-node.ts:7

Parent id, or null to add as a root.