Fullcalendar:添加事件源

时间:2014-11-18 09:26:14

标签: jquery fullcalendar

我的项目中嵌入了一个jquery完整日历。我通过循环提供事件源,例如:

for (i = 0; i < $scope.gcalIntervieweEvents.length; i++) {
         $('#calendar').fullCalendar('addEventSource', $scope.gcalIntervieweEvents[i]);
}

如何为不同的事件来源提供不同的背景颜色?

1 个答案:

答案 0 :(得分:0)

检查链接: - FullCalendar Events 您可以将backgroundColor,textColor或borderColor赋予事件对象。

events: [{
  title  : 'event1',
  backgroundColor: //As per requirement
}]