DayPilot.Gantt.onTaskResize

Fired when the user finishes drag and drop task box resizing, before the default TaskResize action (specified by taskResizeHandling property).

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

Arguments

  • args.task - holds a DayPilot.Task object representing the task
  • args.newStart - new task start (DayPilot.Date)
  • args.newEnd - new task end (DayPilot.Date)
  • args.preventDefault() - cancels the default action

Example

dp.onTaskResize = function(args) {
  alert("Task resized: " + args.task.text());
};