DayPilot.Gantt.onTaskResizing

Fired repeatedly during drag and drop task box resizing, whenever the task duration changes.

Arguments

  • args.task - holds a DayPilot.Task object representing the task
  • args.start - current position start (DayPilot.Date)
  • args.end - current position end (DayPilot.Date)
  • args.left.html - HTML of the start indicator
  • args.left.enabled - whether the start indicator should be displayed (boolean)
  • args.right.html - HTML of the end indicator
  • args.right.enabled - whether the end indicator should be displayed (boolean)

Example

dp.onTaskResizing = function(args) {
  args.left.html = args.start.toString("d MMMM yyyy");
  args.right.html = args.end.toString("d MMMM yyyy");
};