Undo and Redo in JavaScript Spreadsheet
23 Jun 20201 minute to read
Spreadsheet provides the support to perform undo and redo operations. You can set allowUndoRedo
as true to enable undo redo feature. You can also use undoRedoStep
property to limit the undo redo action.
The following options are available in Spreadsheet undo redo.
- To perform undo action use
undo
method. - To perform redo action use
redo
method. - To update the undo redo collections use
updateUndoRedoCollection
method. - To clear the undo redo collections use
clearUndoRedo
method.
NOTE
Default value of
undoRedoStep
is 20. You can perform 20 undo or redo actions.
Undo the last action
Undo reverses the last action you performed with Spreadsheet. You can do this by following ways.
- Use Undo button of HOME tab in ribbon.
- Use “Ctrl + Z” key.
Redo the action
Redo reverses the last undo action you performed with Spreadsheet. You can do this by following ways.
- Use Redo button of HOME tab in ribbon.
- Use “Ctrl + Y” key.