The onBeforeHeaderExport event is fired during image export for each column header cell. It lets you customize the column headers in the exported image.
DayPilot.Calendar.onBeforeHeaderExport(args);args.text (string) - exported text (by default set to customized HTML)
args.backColor (string) - background color of the time header cell
args.horizontalAlignment ("left" | "center" | "right") - text alignment (default value is "center")
args.verticalAlignment ("top" | "center" | "bottom")
args.fontSize
args.fontFamily
args.fontStyle
args.fontColor
args.header.name - column name (from column[].name in resources view); read-only
args.header.id - column id (if specified, in resources view); read-only
args.header.level - header level (integer, zero-based index); read-only
args.header.start - start date (DayPilot.Date object); read-only
args.header.html - customized HTML (string); read-only
Uses the original header text instead of customized HTML:
dp.onBeforeHeaderExport = function(args) {
args.text = args.header.name;
};