Fullcalendar V4或V5,如何去除resourceTimeline类型中的slot标签行
Fullcalendar V4 or V5, How to remove the slot label row in resourceTimeline type
我正在将 fullcalendar-scheduler 1.9.4 升级到 v5 beta2。
我发现 slotLabelInterval
的行为已从 v3 更改为 v4。
我的 objective : 我想完全删除插槽标签行。我在 V1.9.4 中的设置如下(有效):
...
weekNumbers: true,
views: {
timelineThreeDays: {
type: 'timeline',
duration: { days: 3 },
slotLabelInterval: '24:00:00'
}
},
...
但设置 "slotLabelInterval: '24:00:00'" 在 resourceTimeline
类型中与 Fullcalendar-Scheduler 5 beta2(与 v4 相同)不做同样的事情
...
weekNumbers: true,
views: {
timelineThreeDays: {
type: 'resourceTimeline',
duration: { days: 3 },
slotLabelInterval: '24:00:00'
}
},
...
以上代码截图:
我尝试过的:
- 将 slotDuration 与 slotLabelInterval 同时设置为 24(没用)
- set slotLabelFormat: { weekday: 'short', month: 'short' } (没用,总是显示时段标签)
问:如何用V5做出和第一张截图一样的效果
在 v4(或 v5 beta)中,您可以像这样设置相同的时间段:
slotLabelInterval: { days: 1 },
我正在将 fullcalendar-scheduler 1.9.4 升级到 v5 beta2。
我发现 slotLabelInterval
的行为已从 v3 更改为 v4。
我的 objective : 我想完全删除插槽标签行。我在 V1.9.4 中的设置如下(有效):
...
weekNumbers: true,
views: {
timelineThreeDays: {
type: 'timeline',
duration: { days: 3 },
slotLabelInterval: '24:00:00'
}
},
...
但设置 "slotLabelInterval: '24:00:00'" 在 resourceTimeline
类型中与 Fullcalendar-Scheduler 5 beta2(与 v4 相同)不做同样的事情
...
weekNumbers: true,
views: {
timelineThreeDays: {
type: 'resourceTimeline',
duration: { days: 3 },
slotLabelInterval: '24:00:00'
}
},
...
以上代码截图:
我尝试过的:
- 将 slotDuration 与 slotLabelInterval 同时设置为 24(没用)
- set slotLabelFormat: { weekday: 'short', month: 'short' } (没用,总是显示时段标签)
问:如何用V5做出和第一张截图一样的效果
在 v4(或 v5 beta)中,您可以像这样设置相同的时间段:
slotLabelInterval: { days: 1 },