Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/468.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Fullcalendar 2.0.2更改单元格背景_Javascript_Jquery_Css_Annotations_Fullcalendar - Fatal编程技术网

Javascript Fullcalendar 2.0.2更改单元格背景

Javascript Fullcalendar 2.0.2更改单元格背景,javascript,jquery,css,annotations,fullcalendar,Javascript,Jquery,Css,Annotations,Fullcalendar,我目前正在寻找一个解决方案来改变fullcalendar中的单元格背景,这取决于可用性或节假日等 我找到了几种解决方案: -github(+) -github(+) 但它们适用于较旧版本的fullcalendar 我还找到了这个解决方案: 我想知道是否有人有其他解决方案或插件为2.0.2版本。 我尝试使用在此处末尾找到的文件:。。但是没有成功 我对图书馆或plungin的使用相当陌生。 谢谢你的帮助 (+)对不起,我不能发布超过2个链接 编辑 使用fullcalendar 1.6.4,我终于获

我目前正在寻找一个解决方案来改变fullcalendar中的单元格背景,这取决于可用性或节假日等

我找到了几种解决方案:
-github(+)
-github(+)
但它们适用于较旧版本的fullcalendar

我还找到了这个解决方案:

我想知道是否有人有其他解决方案或插件为2.0.2版本。 我尝试使用在此处末尾找到的文件:。。但是没有成功

我对图书馆或plungin的使用相当陌生。 谢谢你的帮助

(+)对不起,我不能发布超过2个链接

编辑

使用fullcalendar 1.6.4,我终于获得了fullcalendar注释()
但我真的需要fullcalendar2.0.2(或更高版本)工作。

这就是我在我的日历上所做的:

我设置了
eventRender

eventRender: function (event, element, icon) {

    if (isHoliday) {//do your own validation                        
        element.find('.fc-event-title').append("<span class='ultra-light'> is a holiday</span>");
    }
},
eventRender:函数(事件、元素、图标){
如果(isHoliday){//进行您自己的验证
元素.find('.fc event title').append(“是假日”);
}
},

当然,一旦您找到
元素.find('.fc event title')
您就可以附加css或执行任何您想执行的操作。

这里有两个链接:| |谢谢,但我希望为表格单元格着色,而不是将“假日”作为事件呈现。我希望像annotations解决方案()一样呈现,但此解决方案适用于FullCalendar v1.5.4