The onRowCreated event handler fires when new row text is submitted in the JavaScript Gantt Chart, after the default action specified by rowCreateHandling.
DayPilot.Gantt.onRowCreated(args)args.control (DayPilot.Gantt) - component reference
args.text (string) - text submitted by the user
This event fires after the default action configured by rowCreateHandling has been performed. Use onRowCreate if you need to inspect or cancel the submitted text before that action runs.
JavaScript
const gantt = new DayPilot.Gantt("dp", {
onRowCreated: (args) => {
console.log(`Created row: ${args.text}`);
},
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
onRowCreated: (args) => {
console.log(`Created row: ${args.text}`);
},
// ...
};React
<DayPilotGantt
onRowCreated={onRowCreated}
{/* ... */}
/>const onRowCreated = (args) => {
console.log(`Created row: ${args.text}`);
};Vue
<DayPilotGantt
@rowCreated="onRowCreated"
<!-- ... -->
/>const onRowCreated = (args) => {
console.log(`Created row: ${args.text}`);
};