The onEventRightClicked event handler fires when the user right-clicks an event in the monthly calendar.
This event is fired after the default action specified by eventRightClickHandling.
See also DayPilot.Month.onEventRightClick, which fires before the default action.
DayPilot.Month.onEventRightClicked(args)args.e (DayPilot.Event) - the event reference
JavaScript
const dp = new DayPilot.Month("dp", {
onEventRightClicked: (args) => {
alert("Event clicked: " + args.e.text());
},
// ...
});
dp.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
onEventRightClicked: (args) => {
alert("Event clicked: " + args.e.text());
},
// ...
};React
<DayPilotMonth
onEventRightClicked={onEventRightClicked}
{/* ... */}
/>const onEventRightClicked = (args) => {
alert("Event clicked: " + args.e.text());
};Vue
<DayPilotMonth
@eventRightClicked="onEventRightClicked"
<!-- ... -->
/>const onEventRightClicked = (args) => {
alert("Event clicked: " + args.e.text());
};DayPilot.Month.onEventRightClick