1

是否可以创建一个自定义resourceTimline视图,其中显示一周中的多天 - 类似于默认月视图 ( resourceTimelineMonth) - 而不是一天中的几个时段?

所以基本上不是这样:

每日视图

我想要这样的东西:

周视图

...但仅显示 5 天。

4

1 回答 1

0

如下自定义视图定义应该可以满足您的需要:

  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上的演示以获取更多信息。

于 2020-06-24T14:48:18.610 回答