【问题标题】:Fullcalendar: add event sourcesFullcalendar:添加事件源
【发布时间】:2014-11-18 09:26:14
【问题描述】:

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

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

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

【问题讨论】:

标签: jquery fullcalendar


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2013-06-14
    • 2012-03-10
    • 1970-01-01
    • 2017-01-12
    • 2014-04-05
    • 2011-01-22
    • 1970-01-01
    • 2019-12-26
    • 1970-01-01
    相关资源
    最近更新 更多