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.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")

Example

Scheduler config:

{
  onBeforeEventExport: (args) => {
    args.text = scheduler.startDate.toString("yyyy");
  },
  // ...
}