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
getUndoRedoDepth(): Promise<{ undo: number; redo: number }>| Arguments | Required | Type |
|---|
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
- Edit history
Undo or redo recorded editing transactions. One operation may contain multiple cell changes, so cell counts and history counts are not necessarily equal.