I’m using this great component to show the calendar appointments for workers in a hair studio.
Then I’m using the week unit view as shown in attached picture, to show multiple persons for each day.
I would like to differentiate days by colouring them alternatively with a different background color.
This is because it is not immediately clear where a day ends and start a new one, as vertical separators are the same between sub-units and between days.
Alternatiely I would like to be able to use a stronger line between days, but I didn’t found any way to do that.
I tried using addMarkedTimespan which is goot to change the background of a day, but I cannot figure hot to mark days alternatively.
Since days are 7 I canno say to mark aver monday, wensday , friday and so on, because I end up having two consecutive days with the same color?
You, you need to use addMarkedTimespan method in this case.
To mark some days (for example monday, wednesday , friday) set property
days:[1,3,5]
Please, check the snippet ‘multiday unit view’ as on your screenshot. And please note how Saturday is marked. You need to colorize days in a similar way in your app. docs.dhtmlx.com/scheduler/sample … _days.html
unfortunately this cannot work as you describe, because I need to color days alternatively.
This meas one day yes and one day not.
Mon- Tue - Wed -Thu - Fri - Sat - Sun Mon- Tue - Wed -Thu - Fri - Sat - Sun
y -> n -> y -> n -> y -> n -> y -> y -> n -> y -> n -> y -> n -> y
You see, The next Monday would have the same color as the Sunday.