DayPilot.Kanban.onColumnMoved

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

Declaration

DayPilot.Kanban.onColumnMoved(args);

Parameters

  • args.column (DayPilot.Column object) - the column being moved
  • args.position (integer) - target position (index)
  • args.previous (DayPilot.Column object) - column preceding the target position
  • args.next (DayPilot.Column object) - column following the target position

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

Example

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

<script type="text/javascript">

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

    dp.columnMoveHandling = "Update";

    dp.onColumnMoved = function(args) {
      dp.message("Column " + args.column.data.name + " was moved.");
    };

    dp.init();

</script>