Skip to content

Interface: CloneSubtreeResult\<TRow\>

Defined in: src/tree-editor/clone-subtree.ts:17

Type Parameters

TRow

TRow

Properties

newRootId

newRootId: string

Defined in: src/tree-editor/clone-subtree.ts:19

Id of the cloned subtree’s root (newly minted).


nodes

nodes: TreeNode<TRow>[]

Defined in: src/tree-editor/clone-subtree.ts:25

Flat list of cloned nodes in pre-order (root first), with parentId rewritten to point at the new ids. The root’s parentId is null — callers reassign it when inserting somewhere specific.