Skip to content

Interface: UseDragDropOptions\<TRow\>

Defined in: src/tree-editor/use-drag-drop.ts:25

Type Parameters

TRow

TRow

Properties

execute

execute: (command) => void

Defined in: src/tree-editor/use-drag-drop.ts:32

Execute a command (typically the execute from useHistoryManager). Called when a valid drop occurs.

Parameters

command

MoveNodeCommand<TRow>

Returns

void


state

state: TreeState<TRow>

Defined in: src/tree-editor/use-drag-drop.ts:27

Current tree state — used to validate drops.


validators?

optional validators?: MoveValidator<TRow>[]

Defined in: src/tree-editor/use-drag-drop.ts:34

Custom validators run in addition to the built-in cycle/self check.