The onEventRightClicked event handler fires after the default event right-click action configured by eventRightClickHandling has been performed.
DayPilot.Queue.onEventRightClicked(args)args.e (DayPilot.Event) - the event reference
Use eventRightClickHandling to change or disable the built-in action that runs before this handler.
JavaScript
const queue = new DayPilot.Queue("dp", {
onEventRightClicked: (args) => {
DayPilot.Modal.alert(args.e.text());
},
// ...
});
queue.init();Angular
<daypilot-queue [config]="config"></daypilot-queue>config: DayPilot.QueueConfig = {
onEventRightClicked: (args) => {
DayPilot.Modal.alert(args.e.text());
},
// ...
};React
<DayPilotQueue
onEventRightClicked={onEventRightClicked}
{/* ... */}
/>const onEventRightClicked = (args) => {
DayPilot.Modal.alert(args.e.text());
};Vue
<DayPilotQueue
@eventRightClicked="onEventRightClicked"
<!-- ... -->
/>const onEventRightClicked = (args) => {
DayPilot.Modal.alert(args.e.text());
};DayPilot.Queue.onEventRightClick