# eventResize

> FullCalendar v3 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v3/eventResize
>
> Latest version (v7): https://fullcalendar.io/docs/eventResize.md

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

<div class='spec' markdown='1'>
function( *event*, *delta*, *revertFunc*, *jsEvent*, *ui*, *view* ) { }
</div>

`event` is an [Event Object](https://legacy.fullcalendar.io/v3/event-object.md) that hold the event's information (date, title, etc).

`delta` is a [Duration Object](https://legacy.fullcalendar.io/v3/moment-duration.md) that represents the amount of time the event's start or end was extended or reduced by.

`revertFunc` is a function that, if called, reverts the event's end date to the value before the drag. This is useful if an ajax call should fail.

`jsEvent` holds the jQuery event with low-level information such as mouse coordinates.

`ui` holds an empty object. Before version 2.1, the [jQuery UI object](https://jqueryui.com/demos/resizable/).

`view` holds the current [View Object](https://legacy.fullcalendar.io/v3/view-object.md).

Here is an example demonstrating most of these arguments:

```js
$('#calendar').fullCalendar({
  events: [
    // events here
  ],
  editable: true,
  eventResize: function(event, delta, revertFunc) {

    alert(event.title + " end is now " + event.end.format());

    if (!confirm("is this okay?")) {
      revertFunc();
    }

  }
});
```
