The onEventEdited event handler fires when inline event editing is submitted in the JavaScript Calendar component, after the default edit action has been performed.
Declaration
DayPilot.Calendar.onEventEdited(args)
Parameters
args.e(DayPilot.Event) - the edited eventargs.newText(string) - new event text
Notes
This event handles the submit step of inline event editing.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
onEventEdited: args => {
DayPilot.Modal.alert("Saved: " + args.newText);
},
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
onEventEdited: args => {
DayPilot.Modal.alert("Saved: " + args.newText);
},
// ...
};React
<DayPilotCalendar
onEventEdited={onEventEdited}
{/* ... */}
/>const onEventEdited = (args) => {
DayPilot.Modal.alert("Saved: " + args.newText);
};Vue
<DayPilotCalendar @eventEdited="onEventEdited" <!-- ... --> />
const onEventEdited = (args) => {
DayPilot.Modal.alert("Saved: " + args.newText);
};See Also
DayPilot.Calendar.eventEditHandling
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot