Skip to main content

onEventDrag

Description

Fires when the user drags/resizes events in the scheduler

onEventDrag: (id: string, mode: string, ev: Event) => void;

Parameters

  • id - (required) string - the event's id
  • mode - (required) string - the dragging mode: "move","resize" or "new-size" (creating new events)
  • e - (required) Event - a native event object

Example

scheduler.attachEvent("onEventDrag", function (id, mode, e){
//any custom logic here
});

Details

Modes description:

  • move - the user drags the event over the scheduler.
  • resize - the user resizes the event by drag-and-drop.
  • new-size - the user creates a new event by drag-and-drop.
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.