DayPilot.Calendar.onBeforeTimeHeaderRender

The onBeforeTimeHeaderRender event handler lets you customize the row header appearance.

Declaration

onBeforeTimeHeaderRender(args)

Parameters

  • args.header.hours (read-only, e.g. 13)
  • args.header.minutes (read-only, e.g. 30)
  • args.header.start (read-only, e.g. "13:30")
  • args.header.html
  • args.header.areas
  • args.header.time (DayPilot.Duration object) - since 2018.4.3474

Example

dp.onBeforeTimeHeaderRender = function(args) {
  if (args.header.hours === 12) {
    args.header.html = "noon";
  }
};