Paul-DS / bootstrap-year-calendar

[DEPRECATED] A fully customizable year calendar widget, for boostrap !
Apache License 2.0
294 stars 243 forks source link

Same Background Color #213

Closed hoaxone closed 5 years ago

hoaxone commented 6 years ago

I use the calendar with the half day option. Is there an opportunity to reduce the background color to one single color?

garth1138 commented 6 years ago

In your dataSource, you can specify the color for each entry by adding "color:'[colorHexCode]'" as part of your data. If color is defined for an entry it will be applied. With no color defined, then it will cycle through the five predefined colors. I use it to show different types of entries based on type in data. Example: dataSource: [{id:29844, type:'PTO', hours:8, color:'#668cff', startDate: new Date(2015,3,8), endDate: new Date(2015,3,8)}]

hoaxone commented 6 years ago

Thank you