The onEventEdited event handler fires when inline event editing is submitted and the new event text is confirmed.
Declaration
DayPilot.Scheduler.onEventEdited(args)Parameters
args.e(DayPilot.Event) - edited event referenceargs.newText(string) - new event text
Notes
Handles the submit event during inline event editing. Use args.newText to access the updated value entered by the user.
Examples
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);
};See Also
Inline Event Editing [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot