Interface: UseClipboardReturn\<TRow\>
Defined in: src/tree-editor/use-clipboard.ts:31
Type Parameters
TRow
TRow
Properties
clear
clear: () =>
void
Defined in: src/tree-editor/use-clipboard.ts:44
Clear the clipboard.
Returns
void
copy
copy: (
id) =>void
Defined in: src/tree-editor/use-clipboard.ts:38
Place the subtree rooted at id on the clipboard.
Parameters
id
string
Returns
void
cut
cut: (
id) =>void
Defined in: src/tree-editor/use-clipboard.ts:40
Like copy, then issue a DeleteNodeCommand (undoable).
Parameters
id
string
Returns
void
hasContent
hasContent:
boolean
Defined in: src/tree-editor/use-clipboard.ts:33
true when the clipboard has something to paste.
mode
mode:
"copy"|"cut"|null
Defined in: src/tree-editor/use-clipboard.ts:36
Current operation mode — 'cut' keeps the source until paste, but
the cut is executed eagerly (the spec treats cut as copy + delete).
paste
paste: (
targetParentId,index?) =>boolean
Defined in: src/tree-editor/use-clipboard.ts:42
Insert the clipboard contents under targetParentId at index.
Parameters
targetParentId
string | null
index?
number
Returns
boolean