The onEventEdited event handler fires when inline event editing is submitted in the JavaScript Calendar component, after the default edit action has been performed.
DayPilot.Calendar.onEventEdited(args)
args.e (DayPilot.Event) - the edited event
args.newText (string) - new event text
This event handles the submit step of inline event editing.
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);
};