Fullcalendar:以相同的时间格式化事件

fullcalendar: format events with same time

本文关键字:时间 格式化 事件 Fullcalendar      更新时间:2023-09-26

在fullcalendar的weekAgenda视图中,同时开始的2个事件显示如下:

+--------+--------+
|        |        |
|        |        |
|        +--------+
|             |
|             |
|             |
+-------------+

你看,左边的比右边的宽得多。我希望它们的宽度相同。像这样:

+--------+--------+
|        |        |
|        |        |
|        +--------+
|        |
|        |
|        |
+--------+

我该怎么做呢?

您可以在您的实例中使用slotEventOverlap: false选项。

文档:https://fullcalendar.io/docs/slotEventOverlap