DayPilot.Calendar.onColumnMove

The onColumnMove event is fired when a user completes drag and drop moving of calendar columns (on drop).

You can use this event to cancel the moving (by calling args.preventDefault() method).

When this event is called, the calendar columns (columns.list property) still show the original positions. To read the new values, use the onColumnMoved event handler.

Available in the calendar component since version 2022.3.5381.

Declaration

DayPilot.Calendar.onColumnMove(args);

Parameters

  • args.source - information about the moved calendar column
  • args.target  - information about the target (reference) calendar column
  • args.position - new column position relative to the target column ("before" | "after" | "child" | "forbidden")
  • args.preventDefault() - prevent the default action (cancel the moving)