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.Scheduler.onLinkCreate(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')
- args.preventDefault() - cancels the default action
Example
dp.onTaskCreate = function(args) {
dp.message("Link created, type: " + args.type);
};