Skip to content

Interface: HistoryManagerReturn\<TRow\>

Defined in: src/tree-editor/use-history-manager.ts:11

Type Parameters

TRow

TRow

Properties

canRedo

canRedo: boolean

Defined in: src/tree-editor/use-history-manager.ts:23

Whether redo is available.


canUndo

canUndo: boolean

Defined in: src/tree-editor/use-history-manager.ts:21

Whether undo is available.


clear

clear: () => void

Defined in: src/tree-editor/use-history-manager.ts:29

Clear all history (preserves current state).

Returns

void


execute

execute: (command) => void

Defined in: src/tree-editor/use-history-manager.ts:15

Execute a command: apply it and push to undo stack.

Parameters

command

Command<TRow>

Returns

void


redo

redo: () => void

Defined in: src/tree-editor/use-history-manager.ts:19

Redo the last undone command.

Returns

void


redoStack

redoStack: Command<TRow>[]

Defined in: src/tree-editor/use-history-manager.ts:27

The redo stack (most recent last).


state

state: TreeState<TRow>

Defined in: src/tree-editor/use-history-manager.ts:13

Current tree state.


undo

undo: () => void

Defined in: src/tree-editor/use-history-manager.ts:17

Undo the last command.

Returns

void


undoStack

undoStack: Command<TRow>[]

Defined in: src/tree-editor/use-history-manager.ts:25

The undo stack (most recent last).