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

typescript
undo(): Promise<boolean>
ArgumentsRequiredType

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