Customise the background color of a cell in the header

hello ,

is there a way to change the background color of one cell in the scheduler’s header ? for example : color the cell of January in blue and the cell of February in grey …

thank you.

Hi,

do like

scheduler.attachEvent(“onViewChange”, function (new_mode, new_date){
//switch
var headerDiv = document.querySelector(“div.dhx_cal_date”).style;
if (new_date.getMonth() == 5 )
headerDiv.color = “red”; //backgroundColor
else
headerDiv.color = “”;
});
docs.dhtmlx.com/scheduler/scheduler_markup.html

If you want to change the css style for a day cell, use month_date_class template
docs.dhtmlx.com/scheduler/month_ … lates.html

Hello,
you can define a classname for a header elements using ‘viewName_scalex_class’ template, please see the example
docs.dhtmlx.com/scheduler/snippet/da1c27a6

thank you very much