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 eventargs.newStart(DayPilot.Date) - new event startargs.newEnd(DayPilot.Date) - new event endargs.async- available when the resize is handled asynchronouslyargs.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
Event Resizing [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
Lite args missing: async
DayPilot