Resource Day Header Render Hooks

In Resource DayGrid and Resource TimeGrid views, a “resource day header” is the cell in the column header that displays a resource’s name.

resourceDayHeaderAlign - horizontal alignment of the content. Accepts 'start', 'center', or 'end'

resourceDayHeaderClass - a ClassName Input

resourceDayHeaderInnerClass - a ClassName Input for the inner wrapper of the resource day header. Useful for adjusting padding.

resourceDayHeaderContent - a Content Injection Input

resourceDayHeaderDidMount

resourceDayHeaderWillUnmount

Argument

When the above hooks are specified as a function in the form function(arg), the arg is an object with the following properties:

  • resource - Resource Object
  • date - if the column is scoped to a particular date, this will be the Date object
  • text
  • isOther
  • isToday
  • isPast
  • isFuture
  • isDisabled
  • isNarrow
  • isMajor
  • level
  • el - the element. only available in resourceDayHeaderDidMount and resourceDayHeaderWillUnmount