DayPilot.Calendar.onEventResized

The onEventResized event handler fires after the default resize action has been executed.

This event is available in api=2 mode only.

Declaration

DayPilot.Calendar.onEventResized(args)

Parameters

  • args.e (DayPilot.Event) - the resized event

  • args.newStart (DayPilot.Date) - new event start

  • args.newEnd (DayPilot.Date) - new event end

  • args.async - available when the resize is handled asynchronously

  • args.control - Calendar instance that fired the event

Examples

JavaScript

const calendar = new DayPilot.Calendar("dp", {
  onEventResized: args => {
    DayPilot.Modal.alert("Resized: " + args.e.text());
  },
  // ...
});
calendar.init();

Angular

<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
  onEventResized: args => {
    DayPilot.Modal.alert("Resized: " + args.e.text());
  },
  // ...
};

React

<DayPilotCalendar
  onEventResized={args => {
    DayPilot.Modal.alert("Resized: " + args.e.text());
  }}
  {/* ... */}
/>

Vue

<DayPilotCalendar
  @eventResized="onEventResized"
  <!-- ... -->
/>
const onEventResized = args => {
    DayPilot.Modal.alert("Resized: " + args.e.text());
  };

See Also

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript

Lite args missing: async