本文介绍了如何将Google日历动态添加到jQuery FullCalendar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经看到如何添加Google日历,但是当我运行它时,它会创建一个新日历,即使我使用的选择器引用了现有日历。
$ calendar.fullCalendar({
events:$ .fullCalendar.gcalFeed($ feed_url.val())
});
我有其他功能,使用renderEvents,但我不确定如何在谷歌日历中使用它...
任何想法或建议?
谢谢。
解决方案
请看功能。如果可以使用 $。fullCalendar.gcalFeed($ feed_url.val())
作为第二个参数来调用该函数。我在上测试过它。
I have seen how to add google calendar, but when I run it, it create's a new calendar, even though the selector I am using, refer's to an existing calendar.
$calendar.fullCalendar({
events: $.fullCalendar.gcalFeed($feed_url.val())
});
I have other functions, that use renderEvents, but I am not sure how to use that with google calendars...
Any thoughts or suggestions?
Thank You.
解决方案
Look at the addEventSource function. If you can call that function with your $.fullCalendar.gcalFeed($feed_url.val())
as the second argument. I tested it over at jsfiddle.
这篇关于如何将Google日历动态添加到jQuery FullCalendar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!