In version 2 of Fullcalender I need the dayRender callback, I want to change color of disable day.
This callback only works for month, basicWeek, and basicDay views.. But I need this callback for agendaWeek and agenda.
Do you have any alternative or answers for dayRender ?
I try this :
dayRender: function(date, cell){
if (date > maxDate){
$(cell).addClass('disabled');
console.log("ok");
}
}
and my view
views: {
agendaSix: {
type: 'agenda',
duration: { days: 6 },
buttonText: '5 day',
},
agendaFive: {
type: 'agenda',
duration: { days: 5 },
buttonText: '4 day'
},
agendaFour: {
type: 'agenda',
duration: { days: 4 },
buttonText: '3 day'
},
},
defaultView: 'agendaWeek'
Thank you a lot !