The onRowMoved event is fired by the JavaScript Gantt Chart when the user finishes drag and drop row moving, after the default action (specified by the rowMoveHandling property).
args.external
(boolean) - indicates an external source of the task - another Gantt Chart instance or a custom source (read-only); available since 2024.4.6270
args.source
- holds a DayPilot.Task object representing the source task
args.target
- holds a DayPilot.Task object representing the target task
args.position
(string) - the new position relative to target: "before"
| "after"
| "child"
| "forbidden"
Gantt Chart config:
{
onRowMoved: (args) => {
console.log("Task moved to: " + args.target.text() + " (" + args.position + ")");
},
// ...
}