dayRender stops working when Fullcalendar is using view: resourceTimelineWeek [V4.0.1]

188 Views Asked by At

I have a project in hands that requires me to use the resources premium function from fullcalendar. I need to use the dayRender option to create a div in each day for css customization, however it seems the dayRender is not even called (I used a debugger on the function to test it) when the view is as resourceTimelineWeek. If I use the view timeGridWeek it works just fine. I will leave here the json options I'm working with, but what I'd like to know is if there is another option I can use instead of dayRender for resources in particular. I've tried resourcesRender, it works for the resource part of the table only. I've tried some of the slot render hooks as well without success.

header: {
      left: 'today prev,next',
      center: 'title',
      right: 'resourceTimelineDay,resourceTimelineWeek,resourceTimelineMonth'
},
defaultView: 'resourceTimelineWeek',
firstDay: 1,
slotDuration: {day: 1},
minTime: '10:00:00',
maxTime: '18:00:00',
editable: true,
dayRender: function (args) {
    debugger;
    args.el.innerHtml = 'daeda';
},
resourceRender: function(renderInfo) {
    /*renderInfo.el.style.backgroundColor = 'blue';*/
},
resources: [
  { id: 'abc', building: '460 Bryant', title: 'Auditorium A' },
  { id: 'b', building: '460 Bryant', title: 'Auditorium B' },
  { id: 'c', building: '460 Bryant', title: 'Auditorium C' }
]

Thank you in advance

0

There are 0 best solutions below