Handsontable UndoRedo plugin allows to undo and redo certain actions done in the table.
Note, that not all actions are currently undo-able. The UndoRedo plugin is enabled by default.
Parameters:
Name | Type | Description |
---|---|---|
instance |
Core |
The Handsontable instance. |
Example
undo: true
Methods
-
clear()
-
Clears undo history.
-
done(action)
-
Parameters:
Name Type Description action
object The action desciptor.
-
isRedoAvailable(){boolean}
-
Checks if redo action is available.
Returns: {boolean} Return
true
if redo can be performed,false
otherwise. -
isUndoAvailable(){boolean}
-
Checks if undo action is available.
Returns: {boolean} Return
true
if undo can be performed,false
otherwise. -
redo()
-
Redo the previous action performed to the table (used to reverse an undo).
Fires:
-
undo()
-
Undo the last action performed to the table.
Fires: