如何在(jQuery)FullCalendar中更改eventSource的颜色?

时间:2013-03-06 17:39:25

标签: javascript jquery

我正在使用以下plugin并希望更改eventSource的颜色,但我无法弄清楚要做什么。

到目前为止,我有以下代码:

$('#calendar').fullCalendar({
       eventSources: [
        'events/get_events'
    ]

documentation讨论了执行此操作的选项,但我无法正确使用语法。

有人能帮忙吗?

1 个答案:

答案 0 :(得分:0)

试试这个:

 $('#calender').fullCalendar({
        eventSources: [
    'events/get_events',
    color: 'yellow',
    textColor: 'black'
   ]
});