How to mark holidays in the scheduler

Hi,

I use scheduler.addMarkedTimespan to block day’s. Here I give the day a different background color.

Now I would like to mark holidays in de calendar also. I am using the week view of a scheduler and would like to give the background another color. I could add some new MarkedTimespans to the scheduler, but I would like to add some text to it also. This will let the user know which holiday it is. Is there a way add some text ?

Hi,
yes, you can add any HTML content to the marked timespan:

scheduler.addMarkedTimespan({ days: [0,6], zones: "fullday", css: "gray_section", html: "<span>Holiday name</span>" });
docs.dhtmlx.com/scheduler/api__s … .html#html

Hi,
Thanks for you swift response.