Change color for a specific day?

Is there a way to change the color for a specific day in Year View?

I would like to show days that my client doesn’t teach her piano lessons as red. I would use this for holidays for instance.

Thanks.

Sealos

Can be done by templating

.skip_day .dhx_month_head{ background-color: #EE91EC; }

scheduler.templates.month_date_class=function(date,today){ if (date.getDate()==16 || date.getDate()==11) return "skip_day"; return ""; }

Sorry for the simple question, but I’ve only started to use Scheduler yesterday… but how do I implement templating?

Cheers,
Sealos

The component is fully client side, so you can redefine templates only through client side code, by defining new template functions ( adding them to the end of dhtmlxscheduler.js for example ) , like

scheduler.templates.month_date_class=function(date,today){ if (date.getDate()==16 || date.getDate()==11) return "skip_day"; return ""; }

docs.dhtmlx.com/doku.php?id=dhtm … _templates