跳到主要内容

undo_actions

Description

设置 Undo 操作将撤销的操作

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

Example

gantt.config.undo_actions = {
update: "update",
remove: "remove", // 从 datastore 中移除一个项目
add: "add",
move: "move"
};

Details

注释

此选项在 undo 扩展中定义,因此您需要启用 undo 插件。请在 Undo/Redo Functionality 文章中阅读详细信息。

  • update - (string) - “update” 操作的名称
  • remove - (string) - “remove” 操作的名称
  • add - (string) - “add” 操作的名称
  • move - (string) - “move” 操作的名称

Change log

  • 已在版本 4.0 中新增
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.