The onBeforeCornerExport event is fired during image export (JPEG, PNG, SVG) and direct printing. It lets you customize the appearance of the upper-left corner of the JavaScript Scheduler.
Available since version 2021.4.5145.
DayPilot.Scheduler.onBeforeCornerExport(args);
args.control
(DayPilot.Scheduler) - since version 2024.4.6271
args.backColor
(string)
args.fontSize
(string)
args.fontFamily
(string)
args.fontStyle
("normal" | "bold")
args.fontColor
(string)
args.horizontalAlignment
("left" | "center" | "right")
args.text
(string) - exported text
args.verticalAlignment
("top" | "center" | "bottom")
Scheduler config:
{
onBeforeEventExport: (args) => {
args.text = scheduler.startDate.toString("yyyy");
},
// ...
}