DayPilot.Gantt.onLinkCreated

Declaration

onLinkCreated(args)

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

Parameters

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

Example

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