DayPilot.Gantt.onBeforeRowHeaderExport

The onBeforeRowHeaderExport event is fired during image export. It lets you customize the Gantt Chart row header content and appearance during image export.

Available since version 2023.1.5529.

Declaration

DayPilot.Gantt.onBeforeRowHeaderExport(args);

Parameters

  • args.task - exported task (DayPilot.Task)
  • args.columns - array of 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;
};