DayPilot.Gantt.onTaskMoved

Fired when the user finishes drag and drop task box moving, after 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

Example

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