DayPilot.Scheduler.onBeforeResHeaderRender

Declaration

DayPilot.Scheduler.onBeforeResHeaderRender(args)

Parameters

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

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)";
  }
};

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