DayPilot.Scheduler.onBeforeResHeaderRender

The onBeforeResHeaderRender event is fired once it for every row during init/update (when resources are loaded). See also onBeforeRowHeaderRender which is called on demand whenever the row header is rendered.

Declaration

DayPilot.Scheduler.onBeforeResHeaderRender(args)

Parameters

  • args.resource.areas
  • args.resource.backColor
  • args.resource.columns
  • args.resource.contextMenu
  • args.resource.cssClass
  • args.resource.expanded
  • args.resource.eventHeight
  • args.resource.fontColor (since 2018.2.3224)
  • args.resource.html
  • args.resource.id (read-only)
  • args.resource.loaded
  • args.resource.name
  • args.resource.minHeight
  • args.resource.marginBottom
  • args.resource.start (read-only)
  • args.resource.toolTip

The args.resource.columns property is an array of column properties. Structure of the items (since build 8.1.2007):

  • html
  • backColor
  • cssClass

Example

dp.onBeforeResHeaderRender = function(args) {
  if (args.resource.loaded === false) {
    args.resource.html += " (loaded dynamically)";
  }
};