我正在改變dayAgenda和weekAgenda在每個插槽fullcalender的背景顏色。fullCalender「dayAgenda」和「weekAgenda」背景顏色變化
到目前爲止,我已經試過這在viewRender但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.
}
}
如何實現以下目標:
1-更改背景顏色,如果其他用戶是不是在那個時間段,這樣可在dayAgenda用戶點擊該行之前,可以瞭解該特定時間另一位用戶的可用性。
2-如果在其他用戶設置的那天有節假日,則更改weekAgenda中的列(日)的背景顏色。
向下選民至少提到的原因,可能是你的意見使這個問題更好或如果你知道如何着手解決它,那麼請添加您的答案。 –