Skip to main content

onDragEnd

Description

Fires when the drag/resize operation is finished

onDragEnd: (id: string, mode: string, e: Event) => void;

Parameters

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

Example

var dragged_event;
scheduler.attachEvent("onBeforeDrag", function (id, mode, e){
// use it to get the object of the dragged event
dragged_event = scheduler.getEvent(id);
return true;
});

scheduler.attachEvent("onDragEnd", function(id, mode, e){
var event_obj = dragged_event;
// your custom logic
});
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.