DayPilot.Month.onEventRightClicked

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

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

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript