DayPilot.Scheduler.onLinkCreated

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

Declaration

DayPilot.Scheduler.onLinkCreated(args)

Parameters

  • args.from (string | number) - the source event id
  • args.to (string | number) - the target event id
  • args.type (string) - link type ("StartToStart", "StartToFinish", "FinishToStart", "FinishToFinish')

Example

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