DayPilot.Scheduler.onEventDoubleClicked

The onEventDoubleClicked event handler fires for event double clicks, after the default action has been performed. By default, event double clicks are disabled; enable them using the eventDoubleClickHandling property.

Declaration

DayPilot.Scheduler.onEventDoubleClicked(args)

Parameters

Notes

This handler runs after the action configured by eventDoubleClickHandling. Use it to react to double-clicks after the built-in processing finishes.

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  eventDoubleClickHandling: "Enabled",
  onEventDoubleClicked: (args) => {
    alert("Event double-clicked: " + args.e.text());
  },
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  eventDoubleClickHandling: "Enabled",
  onEventDoubleClicked: (args) => {
    DayPilot.Modal.alert("Event double-clicked: " + args.e.text());
  },
  // ...
};

React

<DayPilotScheduler
  eventDoubleClickHandling="Enabled"
  onEventDoubleClicked={onEventDoubleClicked}
  {/* ... */}
/>
const onEventDoubleClicked = (args) => {
  DayPilot.Modal.alert("Event double-clicked: " + args.e.text());
};

Vue

<DayPilotScheduler
  eventDoubleClickHandling="Enabled"
  @eventDoubleClicked="onEventDoubleClicked"
  <!-- ... -->
/>
const onEventDoubleClicked = (args) => {
  DayPilot.Modal.alert("Event double-clicked: " + args.e.text());
};

See Also

Event Double Click [doc.daypilot.org]

DayPilot.Scheduler.eventDoubleClickHandling

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript