Skip to main content

onAfterTaskDrag

Description

Fires after the user has finished to drag and released the mouse button

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

Parameters

  • id - (required) string | number - the task id
  • mode - (required) string - the drag-and-drop mode ("resize", "progress", "move", "ignore")
  • e - (required) Event - a native event object

Example

gantt.attachEvent("onAfterTaskDrag", function(id, mode, e){
//any custom logic here
});

Details

The event fires when the user drags a task in the timeline area.