跳到主要内容

placeholder_task

Description

在任务列表末尾添加一个空行,以简化通过键盘编辑任务

placeholder_task: any

Example

gantt.config.placeholder_task = true;

// 或者
gantt.config.placeholder_task = {
// 添加新任务后,将焦点移到 placeholder task 上
focusOnCreate: true
};

默认值: false

Details

  • 一个占位符任务会自动被添加到任务列表的末尾。
  • 一旦它在 UI 中被修改并接收到 gantt.updateTask() 调用,一个新任务将被添加到列表的末尾。
  • 可以通过它的 type 值来检测占位符:
if(task.type == gantt.config.types.placeholder){
// 执行某些操作
}
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.