是否可以创建一个自定义resourceTimline
视图,其中显示一周中的多天 - 类似于默认月视图 ( resourceTimelineMonth
) - 而不是一天中的几个时段?
所以基本上不是这样:
我想要这样的东西:
...但仅显示 5 天。
是否可以创建一个自定义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上的演示以获取更多信息。