DayPilot.Calendar.onColumnResize

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

You can use this event to cancel the resizing and reset the calendar columns to use their original widths (by calling args.preventDefault() method).

When this event is called, the calendar columns (columns.list property) still have their original width values. To read the new values, use the onColumnResized event handler.

Available since version 2022.3.5377.

Declaration

DayPilot.Calendar.onColumnResize(args);

Parameters

  • args.column - Information about the resized column
  • args.newWidth (number) - new width of the resized column in pixels
  • args.preventDefault() - prevent the default action