DayPilot.Calendar.onEventRightClick

The onEventRightClick event is fired when a user clicks the calendar event using a right mouse button.

This event is fired before the default action specified using eventRightClickHandling property.

See also the onEventRightClicked event which is fired after the default action.

Declaration

DayPilot.Calendar.onEventRightClick(args);

Parameters

  • args.e (DayPilot.Event) - the event reference
  • args.preventDefault() - cancels the default action

Example

dp.onEventRightClick = args => {
  if (args.e.data.type === "readonly") {
    args.preventDefault();
  }
};

api=1

Declaration

onEventRightClick(e)

Parameters