DayPilot.Scheduler.onEventRightClicked

The onEventRightClicked event handler fires when the user right-clicks an event and the default action has already been performed.

Declaration

DayPilot.Scheduler.onEventRightClicked(args)

Parameters

  • args.e (DayPilot.Event) - scheduler event object

  • args.div (HTMLElement) - DOM <div> element for the event

  • args.originalEvent (MouseEvent) - original browser right-click event

Notes

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.

Examples

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());
};

See Also

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript