DayPilot.Scheduler.onRowCreated

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.

Declaration

DayPilot.Scheduler.onRowCreated(args)

Parameters

  • args.text (string) - row text submitted by the user

Notes

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.

Examples

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);
};

See Also

Row Creating [doc.daypilot.org]

DayPilot.Scheduler.onRowCreate

DayPilot.Scheduler.rowCreateHandling

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript