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';
  }

});

Метаданные статьи

Идентификатор статьи:
54
Категория:
Дата добавления:
28.12.2021 16:29:09
Просмотры:
331
Рейтинг (Голоса):
(0)

Связанные статьи