DayPilot.Calendar.onEventDoubleClick

The onEventDoubleClick event handler fires when the user double-clicks an event, before the default action is performed.

Declaration

DayPilot.Calendar.onEventDoubleClick(args)

Parameters

  • args.e (DayPilot.Event) - the event reference

  • args.preventDefault() - cancels the default double-click action

Notes

In api=1 mode, the legacy signature is onEventDoubleClick(e).

Examples

JavaScript

const calendar = new DayPilot.Calendar("dp", {
  onEventDoubleClick: args => {
    if (args.e.id() === "3") {
      args.preventDefault();
    }
  },
  // ...
});
calendar.init();

Angular

<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
  onEventDoubleClick: args => {
    if (args.e.id() === "3") {
      args.preventDefault();
    }
  },
  // ...
};

React

<DayPilotCalendar
  onEventDoubleClick={args => {
    if (args.e.id() === "3") {
      args.preventDefault();
    }
  }}
  {/* ... */}
/>

Vue

<DayPilotCalendar
  @eventDoubleClick="onEventDoubleClick"
  <!-- ... -->
/>
const onEventDoubleClick = args => {
    if (args.e.id() === "3") {
      args.preventDefault();
    }
  };

See Also

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript