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.
Declaration
DayPilot.Month.onEventRightClicked(args)Parameters
args.e(DayPilot.Event) - the event reference
Examples
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());
};See Also
DayPilot.Month.onEventRightClick
DayPilot.Month.eventRightClickHandling
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot