Skip to content

Type Alias: MoveValidator\<TRow\>

MoveValidator<TRow> = (sourceId, targetId, position, state) => MoveValidationResult

Defined in: src/tree-editor/types.ts:52

Validates whether a move operation is legal.

Type Parameters

TRow

TRow

Parameters

sourceId

string

targetId

string | null

position

"child" | "before" | "after"

state

TreeState<TRow>

Returns

MoveValidationResult