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.
Declaration
DayPilot.Scheduler.onBeforeRowHeaderExport(args);
Parameters
- 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 - exported text
- args.backColor
- args.borderColor
- args.fontSize
- args.fontFamily
- args.fontStyle ("normal" | "italic" | "bold")
- args.fontColor
- args.horizontalAlignment ("left" | "center" | "right")
- args.verticalAlignment ("top" | "center" | "bottom")
Column properties (args.columns[x]):
- backColor
- fontColor
- fontFamily
- fontSize
- fontStyle
- horizontalAlignment
- verticalAlignment
- text
Example
Uses the original row name instead of HTML:
dp.onBeforeRowHeaderExport = function(args) {
args.text = args.row.name;
};