Skip to main content

undo_actions

Description

Sets the actions that the Undo operation will revert

undo_actions: { update?: string; remove?: string; add?: string; move?: string; }

Example

gantt.config.undo_actions = {
update: "update",
remove: "remove", // remove an item from datastore
add: "add",
move: "move"
};

Details

note

This option is defined in the undo extension, so you need to enable the undo plugin. Read the details in the Undo/Redo Functionality article.

  • update - (string) - the name of the "update" action
  • remove - (string) - the name of the "remove" action
  • add - (string) - the name of the "add" action
  • move - (string) - the name of the "move" action

Change log

  • added in version 4.0