fires after the user has pressed the mouse button and started dragging, but before dhtmlxGantt starts the drag-and-drop operation
id | string|number | the task id |
mode | string | the drag-and-drop mode ("resize", "progress", "move", "ignore") |
e | Event | a native event object |
boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
gantt.attachEvent("onBeforeTaskDrag", function(id, mode, e){
//any custom logic here
return true;
});
The event fires when the user drags a task in the timeline area.
The event is blockable. Return false and the task will be backed to the initial position.