The onLinkClicked event handler fires when the user clicks a link in the JavaScript Scheduler component. It runs after the default action.
DayPilot.Scheduler.onLinkClicked(args)args.link (DayPilot.Link) - the target link
Use this handler when you need to react after the built-in Scheduler link click action has finished. The clicked DayPilot.Link object is available as args.link. If you need to inspect the click before the default action, use onLinkClick.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
onLinkClicked: (args) => {
console.log("Link clicked after default action", args.link);
},
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
onLinkClicked: (args) => {
console.log("Link clicked after default action", args.link);
},
// ...
};React
<DayPilotScheduler
onLinkClicked={onLinkClicked}
{/* ... */}
/>const onLinkClicked = (args) => {
console.log("Link clicked after default action", args.link);
};Vue
<DayPilotScheduler
@linkClicked="onLinkClicked"
<!-- ... -->
/>const onLinkClicked = (args) => {
console.log("Link clicked after default action", args.link);
};Links [doc.daypilot.org]