代码之家  ›  专栏  ›  技术社区  ›  Justin

多个事件源的完整日历类名

  •  1
  • Justin  · 技术社区  · 16 年前

    我正在尝试设置我的完整日历事件源。 我希望使用多个源(即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有一个类名,但不确定如何让我的另一个源有一个类名…

    任何想法都将不胜感激。

    2 回复  |  直到 16 年前
        1
  •  0
  •   arshaw    15 年前

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

    最好将源的类名设置为一个高级属性。请随意请求此功能( http://arshaw.com/fullcalendar/support/ )

        2
  •  0
  •   MechMK1    8 年前

    你可以尝试添加 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'
    }
    
    ],