Is it possible to do alternating row background colours in FullCalendar?

后端 未结 4 1573
执念已碎
执念已碎 2021-01-25 06:41

I applied an odd/even class to the fc-agenda-slot tr\'s, but the problem is the left/right \"cell\" border is on the fc-agenda-days table which is below, so it\'s not shown when

4条回答
  •  不知归路
    2021-01-25 07:13

    I'm fairly certain there is no solution to this problem.

    The root of the issue is how week view is structured, which is arguably a rampant abuse of markup. It is basically a table that has columns, which then has a table overlapping it that has rows. There aren't individual cells for you to control only singular rows and columns. When you color the row you are hiding the column borders, more than likely unintentionally. As far as I can tell, this was either a design decision of the plugin or a major oversight.

    In day view, this isn't a problem as you only have a single column.

提交回复
热议问题