The onEventClicked event handler fires after the default event click action configured using DayPilot.Queue.eventClickHandling.
Declaration
DayPilot.Queue.onEventClicked(args)Parameters
args.e(DayPilot.Event) - the event reference
Notes
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.
Examples
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());
};See Also
DayPilot.Queue.eventClickHandling
DayPilot.Queue.multiselect.add()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot