The onEventResized event handler fires after the default action configured by eventResizeHandling has been executed.
Declaration
DayPilot.Scheduler.onEventResized(args)Parameters
args.areaData(any) - value of thedataproperty of the active area used as the resize handle (available since 2023.4.5811)args.async(boolean) - indicates whether the resize used the asynchronous update modeargs.control(DayPilot.Scheduler) - control instanceargs.e(DayPilot.Event) - resized eventargs.multiresize(array) - additional resized events from a multi-resize operation; each item includesevent,start, andendargs.newStart(DayPilot.Date) - new event startargs.newEnd(DayPilot.Date) - new event endargs.what("start"|"end") - resized edge (available since 2019.2.3823)
Notes
Use this post-action event when you need to react to the final resized dates after the Scheduler has already updated the event.
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
onEventResized: (args) => {
dp.message("Resized: " + args.e.text());
},
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
onEventResized: (args) => {
console.log("Resized:", args.e.text());
},
// ...
};React
<DayPilotScheduler
onEventResized={onEventResized}
{/* ... */}
/>const onEventResized = (args) => {
console.log("Resized:", args.e.text());
};Vue
<DayPilotScheduler
@eventResized="onEventResized"
<!-- ... -->
/>const onEventResized = (args) => {
console.log("Resized:", args.e.text());
};See Also
Event Resizing [doc.daypilot.org]
DayPilot.Scheduler.eventResizeHandling
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
Lite args missing: multiresize
DayPilot