跳到主要内容

onAfterTaskDrag

Description

在用户完成拖拽并松开鼠标按钮后触发

onAfterTaskDrag: (id: string | number, mode: string, e: Event) => void;

Parameters

  • id - (required) string | number - 任务 ID
  • mode - (required) string - 拖拽模式("resize", "progress", "move", "ignore")
  • e - (required) Event - 本地原生事件对象

Example

gantt.attachEvent("onAfterTaskDrag", function(id, mode, e){
// 在这里插入您的自定义逻辑
});

Details

当用户在时间线区域拖动任务时触发。

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.