1

我正在尝试设置我的 fullCalendar 事件源。而不是通过 1 个源提取我的所有事件,我想使用多个源(即:google 和本地 json)

这是我到目前为止所拥有的(简而言之)

eventSources: 
[

//CA HOLIDAYS
$.fullCalendar.gcalFeed('http://www.google.com/calendar/feeds/en.canadian%23holiday%40group.v.calendar.google.com/public/basic', { className: 'holiday' }), 

//General events
'events.php?a=getAllCalendarEvents'

],

我遇到的问题是,我可以让 gCalFeed 有一个类名,但不完全确定如何让我的其他来源有一个类名......

任何想法将不胜感激。

4

2 回答 2

0

唯一的另一种方法是为每个事件对象单独设置一个“className”属性。

将源的 className 设置为一个高级属性会很好。请随时请求此功能 ( http://arshaw.com/fullcalendar/support/ )

于 2010-08-27T00:21:20.230 回答
0

你可以尝试添加className到整体eventSource

eventSources: 
[

//CA HOLIDAYS
$.fullCalendar.gcalFeed('http://www.google.com/calendar/feeds/en.canadian%23holiday%40group.v.calendar.google.com/public/basic', { className: 'holiday' }), 

//General events
{
  events: 'events.php?a=getAllCalendarEvents',  
  className: 'GeneralEvents'
}

],
于 2017-10-19T13:29:50.450 回答