API REFERENCE

getUndoRedoDepth

Reads the number of available undo and redo steps.

What does this API do?

Reads the number of available undo and redo steps.

Exact input and result types

typescript
getUndoRedoDepth(): Promise<{ undo: number; redo: number }>
ArgumentsRequiredType

The return type is Promise<{ undo: number; redo: number }>.

Usage flow

After registering and initializing the Grid element, call grid.getUndoRedoDepth(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

Feature explanations and examples