The onEventRightClicked event handler fires when the user right-clicks an event and the default action has already been performed.
DayPilot.Scheduler.onEventRightClicked(args)args.e (DayPilot.Event) - scheduler event object
args.div (HTMLElement) - DOM <div> element for the event
args.originalEvent (MouseEvent) - original browser right-click event
Use this post-action event when you need a notification after the right-click action has finished. To cancel the action before it runs, use the corresponding pre-action handler.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
onEventRightClicked: (args) => {
console.log("Event right-clicked:", args.e.text());
},
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
onEventRightClicked: (args) => {
console.log("Event right-clicked:", args.e.text());
},
// ...
};React
<DayPilotScheduler
onEventRightClicked={onEventRightClicked}
{/* ... */}
/>const onEventRightClicked = (args) => {
console.log("Event right-clicked:", args.e.text());
};Vue
<DayPilotScheduler
@eventRightClicked="onEventRightClicked"
<!-- ... -->
/>const onEventRightClicked = (args) => {
console.log("Event right-clicked:", args.e.text());
};