The onEventClicked event handler fires after the default event click action configured using DayPilot.Queue.eventClickHandling.
DayPilot.Queue.onEventClicked(args)args.e (DayPilot.Event) - the event reference
Use this handler to react after the built-in click action has completed. If you need to cancel the default action before it runs, handle DayPilot.Queue.onEventClick instead.
JavaScript
const dp = new DayPilot.Queue("dp", {
onEventClicked: (args) => {
DayPilot.Modal.alert("Event clicked: " + args.e.text());
},
// ...
});
dp.init();Angular
<daypilot-queue [config]="config"></daypilot-queue>config: DayPilot.QueueConfig = {
onEventClicked: (args) => {
DayPilot.Modal.alert("Event clicked: " + args.e.text());
},
// ...
};React
<DayPilotQueue
onEventClicked={onEventClicked}
{/* ... */}
/>const onEventClicked = (args) => {
DayPilot.Modal.alert("Event clicked: " + args.e.text());
};Vue
<DayPilotQueue
@eventClicked="onEventClicked"
<!-- ... -->
/>const onEventClicked = (args) => {
DayPilot.Modal.alert("Event clicked: " + args.e.text());
};DayPilot.Queue.eventClickHandling