周视图显示多天而不是几小时
Week view show multiple days instead of hours
是否可以创建自定义 resourceTimline
视图,其中显示一周中的多天 - 类似于默认的月视图 (resourceTimelineMonth
) - 而不是一天中的几个时段?
所以基本上不是这样:
我想要这样的东西:
...但只显示了 5 天。
如下所示的自定义视图定义应该可以满足您的需要:
resourceTimelineFive: {
type: 'resourceTimeline',
buttonText: '5 Days',
slotDuration: { days: 1 },
duration: { days: 5 }
},
演示:https://codepen.io/ADyson82/pen/abdwOXO
请参阅以下文档链接:
https://fullcalendar.io/docs/custom-view-with-settings
https://fullcalendar.io/docs/slotDuration
https://fullcalendar.io/docs/duration
以及 https://fullcalendar.io/docs/timeline-custom-view-demo 上的演示以获取更多信息。
是否可以创建自定义 resourceTimline
视图,其中显示一周中的多天 - 类似于默认的月视图 (resourceTimelineMonth
) - 而不是一天中的几个时段?
所以基本上不是这样:
我想要这样的东西:
...但只显示了 5 天。
如下所示的自定义视图定义应该可以满足您的需要:
resourceTimelineFive: {
type: 'resourceTimeline',
buttonText: '5 Days',
slotDuration: { days: 1 },
duration: { days: 5 }
},
演示:https://codepen.io/ADyson82/pen/abdwOXO
请参阅以下文档链接:
https://fullcalendar.io/docs/custom-view-with-settings
https://fullcalendar.io/docs/slotDuration
https://fullcalendar.io/docs/duration
以及 https://fullcalendar.io/docs/timeline-custom-view-demo 上的演示以获取更多信息。