DayPilot.Scheduler.stopDragging

The stopDragging() method cancels any active drag-and-drop operation in the JavaScript Scheduler component.

Declaration

DayPilot.Scheduler.stopDragging()

Notes

Call this static method to cancel event moving, event resizing, external drag and drop, or time range selecting.

Example

This is a static method, so call it on DayPilot.Scheduler, not on a Scheduler instance.

DayPilot.Scheduler.stopDragging();

The following example handles the Escape key and cancels the current drag-and-drop action:

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

See Also

Event Moving [doc.daypilot.org]

Event Resizing [doc.daypilot.org]

External Drag and Drop [doc.daypilot.org]

Time Range Selecting [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript