stores the types of available drag-and-drop modes
gantt.attachEvent("onBeforeTaskDrag", function(id, mode, e){
const modes = gantt.config.drag_mode;
switch (mode){
case modes.move:
break;
case modes.resize:
break;
case modes.progress:
break;
}
//...
});
You shouldn't change the existing names of the drag modes. Otherwise, that functionality will stop working. But you can add new properties if you want to implement custom behavior. If you want to disable a particular drag mode, it is better to use the drag_move, drag_resize, drag_progress configs.