DayPilot.Scheduler.stopDragging

The DayPilot.Scheduler.stopDragging() method cancels all active drag and drop operations:

Declaration

DayPilot.Scheduler.stopDragging()

Example

This method needs to be called as a static method, not on a DayPilot.Scheduler instance:

DayPilot.Scheduler.stopDragging();

Use the escape key to cancel drag and drop:

window.addEventListener("keydown", function(ev) {
  if (ev.key === "Escape") {
    DayPilot.Scheduler.stopDragging();
  }
});