Interface: MoveNodeOptions\<TRow\>
Defined in: src/tree-editor/commands/move-node.ts:4
Type Parameters
TRow
TRow
Properties
id
id:
string
Defined in: src/tree-editor/commands/move-node.ts:6
Id of the node to move.
index?
optionalindex?:number
Defined in: src/tree-editor/commands/move-node.ts:14
Insertion index within the new parent’s childIds (or rootIds
when newParentId is null). When omitted or out of range, the node
is appended.
newParentId
newParentId:
string|null
Defined in: src/tree-editor/commands/move-node.ts:8
New parent id, or null to move to root.
position?
optionalposition?:"child"|"before"|"after"
Defined in: src/tree-editor/commands/move-node.ts:19
Logical drop position relative to the target. Used only to forward to
validators. Defaults to 'child'.
validators?
optionalvalidators?:MoveValidator<TRow>[]
Defined in: src/tree-editor/commands/move-node.ts:25
Optional custom validators that run in addition to the built-in
cycle/self-move check. If any validator returns { allowed: false },
the move is rejected at execute time.