DayPilot.Calendar.onBeforeCellExport

The onBeforeCellRender event is fired during image export. It lets you set custom cell background color.

Declaration

DayPilot.Calendar.onBeforeCellExport(args);

Parameters

  • args.cell - exported grid cell object (read-only)
  • args.backColor

The args object is the same instance that is used in onBeforeCellRender (which is called right before onBeforeCellExport).

Example

dp.onBeforeEventExport = function(args) {
  args.backColor = "white";
};