2010-06-16 77 views
1

我想設置我的fullCalendar事件源。的 不要扯我的所有事件的經過1個來源,我想用多個來源(即:谷歌和本地JSON)fullCalendar className to multiple eventSources

這裏是我迄今爲止(總之)

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有一個類名,但不完全知道如何讓我的其他來源有一個類名...

任何想法,將不勝感激。

回答

0

唯一的另一種方法是爲每個事件對象單獨設置'className'屬性。

將source的className設置爲一個高級屬性會很好。請隨時申請此功能(http://arshaw.com/fullcalendar/support/

+0

這太糟糕了,將完全有有,在未來的版本。 – Justin 2010-10-27 22:56:53

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' 
} 

],