The onEventResized event handler fires after the default action configured by DayPilot.Month.eventResizeHandling has been executed. It is available in DayPilot.Month.api = 2 only.
Declaration
DayPilot.Month.onEventResized(args)Parameters
args.control(DayPilot.Month) - control instanceargs.e(DayPilot.Event) - the resized eventargs.newStart(DayPilot.Date) - new event startargs.newEnd(DayPilot.Date) - new event end
Examples
JavaScript
const month = new DayPilot.Month("dp", {
onEventResized: (args) => {
args.control.message("Event resized: " + args.e.text());
},
// ...
});
month.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
onEventResized: (args) => {
args.control.message("Event resized: " + args.e.text());
},
// ...
};React
<DayPilotMonth
onEventResized={onEventResized}
{/* ... */}
/>const onEventResized = (args) => {
args.control.message("Event resized: " + args.e.text());
};Vue
<DayPilotMonth
@eventResized="onEventResized"
<!-- ... -->
/>const onEventResized = (args) => {
args.control.message("Event resized: " + args.e.text());
};See Also
Event Resizing [doc.daypilot.org]
DayPilot.Month.eventResizeHandling
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot