[]
• new UndoManager()
Represents the undo manager.
▸ canRedo(): boolean
Gets whether the redo operation is allowed.
boolean
true
if the redo operation is allowed; otherwise, false
.
▸ canUndo(): boolean
Gets whether the undo operation is allowed.
boolean
true
if the undo operation is allowed; otherwise, false
.
▸ clear(): void
Clears all of the undo stack and the redo stack.
void
▸ getRedoStack(): any
[]
Get the redo stack.
any
[]
It returns an object. This must include sheetName and cmd. the type of sheetName and cmd both is string.
▸ getUndoStack(): any
[]
Get the undo stack.
any
[]
It returns is an object. This object must include sheetName and cmd. the type of sheetName and cmd both is string.
▸ maxSize(value?
): any
Gets or sets the the undo/redo stack max size.
Name | Type | Description |
---|---|---|
value? |
number |
this value should be greater or equal to 0. |
any
If no value is set. return the max size of undo/redo stack. otherwise return UndoManager.
▸ redo(): boolean
Redoes the last command.
boolean
true
if the redo operation is successful; otherwise, false
.
▸ undo(): boolean
Undoes the last command.
boolean
true
if the undo operation is successful; otherwise, false
.