DayPilot.Gantt.onBeforeCornerExport

The onBeforeCornerExport event is fired during image export. It lets you customize the appearance of the upper-left corner of the Gantt Chart component.

Available since version 2023.1.5529.

Declaration

DayPilot.Gantt.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");
};