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"
};
Related samples
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
Related API
Related Guides
Change log
- added in version 4.0