FullCalendar highlight row

限于喜欢 提交于 2020-01-02 22:36:23

问题


I'd like to highlight an arbitrary set of rows within FullCalendar using the AgendaWeek view. Since each row has it's own css class (for instance, fc-slot32), I figured this wouldn't be much of a problem. However, when I apply a background colour to this row, it messes with the calendar grid. More specifically, it removes the separating borders between days on that row.

I'm unsure as to how FullCalendar actually achieves the calendar grid in the first place - does anyone know how I can possibly highlight the row without removing the grid?


回答1:


If you know what row you want highlighted, this would work:

$('.fc-slot5').css({'background-color':'yellow', 'opacity':0.5 });


来源:https://stackoverflow.com/questions/14537796/fullcalendar-highlight-row

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!