1

是否可以在全日历中更改同一 td 的背景颜色?例如:我喜欢在 Mo 10:00-14:00 有蓝色背景,在 Tu 9:30-11:30 有绿色背景。

我访问:http ://code.google.com/p/fullcalendar/issues/detail?id=144&colspec=ID%20Type%20Status%20Milestone%20Summary%20Stars

但现在有可能,怎么做?

PS:对不起,我的英语不好:(

4

1 回答 1

1

也许我们可以有更多关于它 JGB146 的信息?我目前正在寻找这样做:FullCalendar:更改议程日背景颜色

您要求提供代码片段,但它确实是一个基本日历:

$('#calendar').fullCalendar({
                    events: "/HRV/GetEvents",
                    lazyFetching : false,
                    minTime: 9,
                    maxTime: 22,
                    firstHour: 9,
                    firstDay: 1,
                    slotMinutes: 15
});

希望能够指定另一个选项,例如:

workingTimeRange: [ 
   {
      start: 9,
      end: 12,
      className: 'morningJob'
   },
   {
      start: 13,
      end: 17,
      className: 'afterNoonJob'
   }
]

这将是一个非常有用的功能。我会实现我自己的,但我对 jQuery/fullCalendar 很陌生。

于 2010-05-25T08:34:05.043 回答