How to change css dynamically for fullcalendar resource rows using resourceRender attribute?
For fullcalendar resources (labels coloring use resourceRender attribute like this:
resourceRender: function (resourceObj, labelTds, bodyTds) {
const textColor = this.calculateForeground(resourceObj.color);
labelTds.css("background-color", resourceObj.color);
labelTds.css("color", textColor);
bodyTds.css("background-color", resourceObj.colors.bkg);
}
Or like this:
var calendar = new Calendar(calendarEl, {
resourceRender: function(renderInfo) {
renderInfo.el.style.backgroundColor = 'blue';
}
});