API REFERENCE
undo
Undoes one recorded editing step and returns whether it ran.
What does this API do?
Undoes one recorded editing step and returns whether it ran.
Exact input and result types
undo(): Promise<boolean>| Arguments | Required | Type |
|---|
The return type is Promise<boolean>.
Usage flow
After registering and initializing the Grid element, call grid.undo(…). 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.