The onBeforeRowHeaderExport event is fired during image export (JPEG, PNG, SVG) and direct printing. It lets you customize the JavaScript Scheduler row header content and appearance during image export.
DayPilot.Scheduler.onBeforeRowHeaderExport(args);args.row - exported row (DayPilot.Row)
args.columns - array of additional columns (since 2021.4.5143; in previous releases it is accessible as args.row.columns)
args.text (string) - exported text
args.backColor (string)
args.borderColor (string)
args.format (string) - the target format set using exportAs(), readonly - since version 2025.1.6393
args.fontSize (string)
args.fontFamily (string)
args.fontStyle ("normal" | "italic" | "bold")
args.fontColor (string)
args.format (string) - the target format set using exportAs(), readonly - since version 2025.1.6393
args.horizontalAlignment ("left" | "center" | "right")
args.verticalAlignment ("top" | "center" | "bottom")
Column properties (args.columns[x]):
backColor (string)
fontColor (string)
fontFamily (string)
fontSize (string)
fontStyle (string)
horizontalAlignment ("left" | "center" | "right")
verticalAlignment ("top" | "center" | "bottom")
text (string)
Uses the original row name instead of HTML:
dp.onBeforeRowHeaderExport = function(args) {
args.text = args.row.name;
};