The onRowMove
event handler is called by the JavaScript Scheduler after the user finishes drag-and-drop row moving, before the default action (rowMoveHandling).
DayPilot.Scheduler.onRowMove(args)
args.external
(boolean) - indicates that the row was dragged from an external source (custom draggable item or another Scheduler instance)
args.source
(DayPilot.Row) - the dragged row
args.target
(DayPilot.Row) - the target row
args.position
(string) - position of the dropped row, relative to the target
args.keepSource()
- call this method to keep the row in the source Scheduler as well (when the row is moved from another Scheduler)
args.preventDefault()
- call this method to prevent the default action
Position values:
"child"
"before"
"after"
"forbidden"