DayPilot.Calendar.onBeforeCellExport

Fired during image export. Allows you to provide custom background color for the grid cell.

Available since build 2865.

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";
};

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java