gpt4 book ai didi

jquery - Fullcalendar jQuery - 可以从谷歌日历检索颜色吗?

转载 作者:行者123 更新时间:2023-12-01 05:05:52 25 4
gpt4 key购买 nike

我知道可以根据谷歌日历等来源设置事件的颜色,但我想知道是否有任何方法可以自动检索在谷歌日历本身上设置的颜色?

查看 gcal.js,似乎没有任何关于颜色的推送,但是在 google 的 json api(但是 json-c)中,有对颜色的引用。

http://code.google.com/apis/calendar/data/2.0/developers_guide_protocol.html#RetrievingAllCalendars

我想这是对 Fullcalendar 的功能请求问题,但我想知道我是否遗漏了其中已有的内容?

谢谢!

最佳答案

日历的颜色不在 XML,ICAL Feed 中。它仅显示在用户可用的日历列表中。它列出了日历并使用:GCal 命名空间元素引用

Google Calendar provides several extension elements for use in a metafeed (the feed that lists the user's calendars). These elements are in the gCal namespace, not the Google Data namespace, because they're specific to Calendar

不幸的是,gcal.js 不支持获取列表,除非您使用其他插件来获取颜色,否则您将无法获取颜色。

<小时/>

如果是这样的话,事情就这么简单了。在 gcal.js 中将其推送 - 我认为您可以在

行中添加一些内容
color: entry['gCal$color']['value'],

Google 源 Feed 包含以下值:(日历列表 - 不是日历)

<gCal:color value='#2952A3' />          

关于jquery - Fullcalendar jQuery - 可以从谷歌日历检索颜色吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5965367/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com