The onEventEdited event handler fires when inline event editing is submitted and the new event text is confirmed.
DayPilot.Scheduler.onEventEdited(args)args.e (DayPilot.Event) - edited event reference
args.newText (string) - new event text
Handles the submit event during inline event editing. Use args.newText to access the updated value entered by the user.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
onEventEdited: (args) => {
dp.message("Updated: " + args.newText);
},
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
onEventEdited: (args) => {
DayPilot.Modal.alert("Updated: " + args.newText);
},
// ...
};React
<DayPilotScheduler
onEventEdited={onEventEdited}
{/* ... */}
/>const onEventEdited = (args) => {
DayPilot.Modal.alert("Updated: " + args.newText);
};Vue
<DayPilotScheduler
@eventEdited="onEventEdited"
<!-- ... -->
/>const onEventEdited = (args) => {
DayPilot.Modal.alert("Updated: " + args.newText);
};Inline Event Editing [doc.daypilot.org]