DayPilot.Scheduler.onBeforeCornerExport

The onBeforeCornerExport event is fired during image export (JPEGPNGSVG) and direct printing. It lets you customize the appearance of the upper-left corner of the JavaScript Scheduler.

Available since version 2021.4.5145.

Declaration

DayPilot.Scheduler.onBeforeCornerExport(args);

Parameters

  • args.backColor (string)
  • args.fontSize (string)
  • args.fontFamily (string)
  • args.fontStyle ("normal" | "bold")
  • args.fontColor (string)
  • args.horizontalAlignment ("left" | "center" | "right")
  • args.text - exported text (string)
  • args.verticalAlignment ("top" | "center" | "bottom")

Example

dp.onBeforeEventExport = function(args) {
  args.text = dp.startDate.toString("yyyy");
};