Open sam-thecoder opened 4 years ago
You can specify a color
parameter for each dataSource item:
{
startDate: new Date(r.created_at),
endDate: new Date(r.created_at),
color: "yellow"
}
If no color is specified, the calendar automatically assign one color to each datasource item
Excellent, there's also one where you set a background color, how do you do that?
The color of the datasource item is display depending of the style
option of the calendar.
If you set it to border
, the days will be display like that:
If you set it to background
, the days will be displayed like that:
Is color property can be an hexadecimal, RGB or HSL format ?
Thank you
EDIT: these 3 formats work but need to be quoted : "#DC143", etc ..
How could i highlight public holidays at this calendar if i have an array of dates of them?
how can i mark a color before the event date and after the event date ?
Hello how can I change text color for saturday and sunday ?
I'm tinkering with JS Calendar and I have this codepen example:
https://codepen.io/thecoderr254/pen/wvvJqaY
The interesting part is each "Date Range" has its own color code, this rule isn't set on the js or css code and I haven't seen a way to set that in the documentation. A standard color is important in my case, preferably red to indicate a booked date.