Interface: CloneSubtreeOptions\<TRow\>
Defined in: src/tree-editor/clone-subtree.ts:3
Type Parameters
TRow
TRow
Properties
cloneData?
optionalcloneData?: (data) =>TRow
Defined in: src/tree-editor/clone-subtree.ts:14
Optional callback to transform row data on copy. Defaults to a shallow
spread ({ ...data }).
Parameters
data
TRow
Returns
TRow
generateId
generateId: () =>
string
Defined in: src/tree-editor/clone-subtree.ts:9
Factory producing the id for each cloned node.
Returns
string
rootId
rootId:
string
Defined in: src/tree-editor/clone-subtree.ts:7
Id of the subtree root to clone.
state
state:
TreeState<TRow>
Defined in: src/tree-editor/clone-subtree.ts:5
Source state to read the subtree from.