The onEventResized event handler fires after the default resize action has been executed.
This event is available in api=2 mode only.
DayPilot.Calendar.onEventResized(args)
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
const calendar = new DayPilot.Calendar("dp", {
onEventResized: args => {
DayPilot.Modal.alert("Resized: " + args.e.text());
},
// ...
});
calendar.init();
<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
onEventResized: args => {
DayPilot.Modal.alert("Resized: " + args.e.text());
},
// ...
};
<DayPilotCalendar
onEventResized={args => {
DayPilot.Modal.alert("Resized: " + args.e.text());
}}
{/* ... */}
/>
<DayPilotCalendar @eventResized="onEventResized" <!-- ... --> />
const onEventResized = args => {
DayPilot.Modal.alert("Resized: " + args.e.text());
};Event Resizing [doc.daypilot.org]
Availability of this API item in DayPilot editions:
| Lite | Pro | |
|---|---|---|
| DayPilot for JavaScript |
Lite args missing: async