Reputation: 1425
I'm using the Full calendar Resource View of jarnokurlin (https://github.com/jarnokurlin/fullcalendar), which was an extension of Full calendar of AdamShow.
My issues is I want to indicate the holidays in the time line by changing the cell background color in front of each resource. Different resources may be from different countries so I have to change the colors of the day cells accordingly.
How to do this?
Upvotes: 4
Views: 3242
Reputation: 89
Your question is old, but still relevant. Here is a solution, I think: https://fullcalendar.io/docs/background-events
You can create a new event which apears in the background, not like the others.
Upvotes: 1
Reputation: 982
$('#calendar').fullCalendar({
events: [{
title: 'All Day Event',
start: new Date(y, m, 1),
backgroundColor: '#000'
}, {
title: 'Long Event',
start: new Date(y, m, d - 5),
end: new Date(y, m, d - 2),
backgroundColor: '#dedede',
},
}]
});
Upvotes: 0