The onRowCreated event handler fires when the JavaScript Scheduler component receives submitted text for a new row, after the default action configured by DayPilot.Scheduler.rowCreateHandling has been performed.
DayPilot.Scheduler.onRowCreated(args)args.text (string) - row text submitted by the user
When DayPilot.Scheduler.rowCreateHandling is set to "Enabled", the Scheduler allows row creation but doesn't perform any built-in action after submit, so you can handle the new value in DayPilot.Scheduler.onRowCreate or onRowCreated.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
rowCreateHandling: "Enabled",
onRowCreated: (args) => {
console.log("New row:", args.text);
},
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
rowCreateHandling: "Enabled",
onRowCreated: (args) => {
console.log("New row:", args.text);
},
// ...
};React
<DayPilotScheduler
rowCreateHandling="Enabled"
onRowCreated={onRowCreated}
{/* ... */}
/>const onRowCreated = (args) => {
console.log("New row:", args.text);
};Vue
<DayPilotScheduler
rowCreateHandling="Enabled"
@rowCreated="onRowCreated"
<!-- ... -->
/>const onRowCreated = (args) => {
console.log("New row:", args.text);
};Row Creating [doc.daypilot.org]
DayPilot.Scheduler.onRowCreate