edit doc

eventResize

Triggered when resizing stops and the event has changed in duration.

function( eventResizeInfo ) { }

eventResizeInfo is a plain object with the following properties:

event

An Event Object that holds information about the event (date, title, etc) after the resize.

relatedEvents an array of other related Event Objects that were also resized. an event might have other recurring event instances or might be linked to other events with the same groupId
oldEvent

An Event Object that holds information about the event before the resize.

endDelta

A Duration Object that represents the amount of time the event’s end date was moved by.

startDelta

A Duration Object that represents the amount of time the event’s start date was moved by.

revert

A function that, if called, reverts the event’s start/end date to the values before the drag. This is useful if an ajax call should fail.

view

The current View Object.

el

The HTML element that was being dragged.

jsEvent

The native JavaScript event with low-level information such as click coordinates.

This callback is fired before the eventChange callback is fired.

Here is an example demonstrating most of these properties:

var calendar = new Calendar(calendarEl, {

  events: [
    // events here
  ],

  editable: true,

  eventResize: function(info) {
    alert(info.event.title + " end is now " + info.event.end.toISOString());

    if (!confirm("is this okay?")) {
      info.revert();
    }
  }

});