DayPilot.Calendar.onColumnMoving

 The onColumnMoving event lets you specify custom rules that will be applied in real time during calendar column moving.

It is fired repeatedly during drag and drop column moving, whenever the target position changes.

Available in the calendar component since version 2022.3.5381.

Declaration

DayPilot.Calendar.onColumnMoving(args);

Parameters

  • args.source - the calendar column that is being dragged (read-only)
  • args.target - the target (reference) column (read-only)
  • args.position ("before" | "after" | "child" | "forbidden") - the new position of the source calendar column, relative to the target