DayPilot.Gantt.onTaskMoving

Fired repeatedly during drag and drop task box moving, whenever the position 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.onTaskMoving = function(args) {
  args.left.html = args.start.toString("d MMMM yyyy");
};

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java