UndoRedo

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.

destroy()

Destroys the instance.

disable()

Disables the plugin.

done(wrappedAction, source)

Stash information about performed actions.

Parameters:
Name Type Description
wrappedAction function

The action descriptor wrapped in a closure.

source string optional

Source of the action. It is defined just for more general actions (not related to plugins).

Fires:

enable()

Enables the plugin.

isEnabled(){boolean}

Checks if the plugin is enabled.

Returns: {boolean}

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:
Class: UndoRedo