Fullcalendar资源时间线视图:过去时段背景色设置异常
FullCalendar资源时间线视图背景色问题及需求
我给FullCalendar中过去的空时段设置了背景色,效果已实现,但在**资源时间线视图(Resource Timeline View)**中出现异常:分隔资源的水平线被背景色遮挡,且无论使用什么颜色都会出现该问题。
当前使用的CSS代码
td.fc-day.fc-day-past { background-color: #EEEEEE !important; }
更新后的尝试(问题依旧)
我尝试通过FullCalendar配置为过去单元格添加类(仅设置背景色),但问题没有解决,配置代码如下:
dayCellClassNames: function (arg) { if (arg.isPast) { return ['calendar-past-event-bg'] } }, slotLaneClassNames: function (arg) { if (arg.isPast) { return ['calendar-past-event-bg']; } }
额外需求咨询
能否不为整列着色,仅为最后一个资源以上的部分设置背景色?
内容的提问来源于stack exchange,提问作者Nite
相关产品推荐
相关产品推荐

