DayPilot.Scheduler.onBeforeRowHeaderExport

Fired during image export (JPEGPNGSVG) and direct printing. Allows you to provide alternative text for the row header (image export doesn't support HTML).

Declaration

DayPilot.Scheduler.onBeforeRowHeaderExport(args);

Parameters

  • args.row - exported row (DayPilot.Row)
  • args.row.columns - array of additional columns
  • args.text - exported text
  • args.backColor
  • args.fontSize
  • args.fontFamily
  • args.fontStyle
  • args.fontColor
  • args.borderColor
  • args.horizontalAlignment

Column properties (args.row.columns[x]):

  • backColor
  • fontColor
  • fontFamily
  • fontSize
  • fontStyle
  • horizontalAlignment
  • text

Example

Uses the original row name instead of HTML:

dp.onBeforeRowHeaderExport = function(args) {
  args.text = args.row.name;
};