DayPilot.Gantt.onTaskMove

Fired when the user finishes drag and drop task box moving, before the default TaskMove action (specified by taskMoveHandling property).

The default action can be canceled by calling args.preventDefault().

Arguments

  • args.task - holds a DayPilot.Task object representing the task
  • args.newStart
  • args.newEnd
  • args.external
  • args.ctrl
  • args.shift
  • args.preventDefault() - cancels the default action

Example

dp.onTaskMove = function(args) {
  alert("Task moved to: " + args.newStart);
};