DayPilot.Scheduler.onBeforeTimeHeaderExport

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

Declaration

DayPilot.Scheduler.onBeforeTimeHeaderExport(args);

Parameters

  • args.header.start - cell start (DayPilot.Date)
  • args.header.end - cell end (DayPilot.Date)
  • args.header.level - header level (integer, zero-based index)
  • args.header.text - default text (string)
  • args.header.html - customized HTML (string)
  • args.text (string)- exported text (by default set to customized HTML)
  • args.backColor (string) - background color of the time header cell (since 8.3.2737)

Example

Uses the original cell text instead of HTML:

dp.onBeforeTimeHeaderExport = function(args) {
  args.text = args.header.text;
};

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java