Skip to content

Interface: UseClipboardOptions\<TRow\>

Defined in: src/tree-editor/use-clipboard.ts:20

Type Parameters

TRow

TRow

Properties

cloneData?

optional cloneData?: (data) => TRow

Defined in: src/tree-editor/use-clipboard.ts:28

Optional row-data transformer. Defaults to a shallow spread.

Parameters

data

TRow

Returns

TRow


execute

execute: (command) => void

Defined in: src/tree-editor/use-clipboard.ts:24

Command executor (typically from useHistoryManager).

Parameters

command

Command<TRow>

Returns

void


generateId

generateId: () => string

Defined in: src/tree-editor/use-clipboard.ts:26

Generate a new id for cloned nodes.

Returns

string


state

state: TreeState<TRow>

Defined in: src/tree-editor/use-clipboard.ts:22

Current tree state (live reference).