DayPilot.Gantt.onLinkCreate

This event is fired when the user finishes link creating using drag and drop. It is fired before the default action (see linkCreateHandling).

Declaration

DayPilot.Gantt.onLinkCreate(args)

Parameters

  • args.source (DayPilot.Task) - the source task
  • args.target (DayPilot.Task) - the target task
  • args.type (string) - link type ("StartToStart", "StartToFinish", "FinishToStart", "FinishToFinish')
  • args.preventDefault() - cancels the default action

Example

dp.onTaskCreate = function(args) {
  dp.message("Task created, type: " + args.type);
};

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