DayPilot.Scheduler.onLinkClicked

The onLinkClicked event handler fires when the user clicks a link in the JavaScript Scheduler component. It runs after the default action.

Declaration

DayPilot.Scheduler.onLinkClicked(args)

Parameters

Notes

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.

Examples

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);
};

See Also

Links [doc.daypilot.org]

DayPilot.Scheduler.onLinkClick

DayPilot.Link Class

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript