DayPilot.Kanban.onSwimlaneMoved

Fired when the swim lane moving is finished (the swim lane is dropped at the target position), after the swim lane is actually moved. 

Declaration

DayPilot.Kanban.onSwimlaneMoved(args);

Parameters

  • args.swimlane (DayPilot.Swimlane object) - the swim lane being moved
  • args.position (integer) - target position (index)
  • args.previous (DayPilot.Swimlane object) - swim lnae preceding the target position
  • args.next (DayPilot.Swimlane object) - swim lane following the target position

The source data object is accessible as args.swimlane.data.

Example

<div id="dp"></div>

<script type="text/javascript">

    var dp = new DayPilot.Kanban("dp");
    
    // ...

    dp.swimlaneMoveHandling = "Update";

    dp.onSwimlaneMoved = function(args) {
      dp.message("Swimlane " + args.swimlane.data.name + " has been moved.");
    };

    dp.init();

</script>