I am changing the background color of the dayAgenda and weekAgenda in fullcalendar for per slot.
So far I have tried this at viewRender but stucked..
viewRender: function (view, element, cell) {
if (view.type == "agendaWeek") {
//change the each day background colors in week view vertically
var dayId = "Day id on which other user has set the holidays"
// Set here the background color of column vartically if there is a holiday
}
if (view.type == "agendaDay") {
//change the each time slot background colors horizontally according to availability of other user
//Other user available between these time.
var startTime = "start time here for that day, set by other user for his avaliability ";
var endTime = "end time here for that day , set by other user for his avaliability";
//Set here the background color if the other user not available at those time.
}
}
How to achieve the following:
Change background color if other user is not available in that time slot so that before clicking that row in dayAgenda user can get an idea about the availability of the another user at that particular time.
Change background color of the columns(day) in weekAgenda if there is holidays in that day which is set by the other user.