Fullcalendar: Change the color for specific days

前端 未结 8 962
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 16:31

I\'m stuck with a project I get at work. I need to change the background color of some days. It\'s a calendar where the user should see, which days are available and which n

8条回答
  •  死守一世寂寞
    2020-12-08 16:53

        dayRender: function(date, cell){
            if (moment().diff(date,'days') > 0){
                cell.css("background-color","silver");
            }
        },
    

提交回复
热议问题