我在使用 fullcalendar 插件时遇到了一些问题。 我想为每个多个 View 设置不同的选项。 例如,我想在日 View 中将 slotDuration 和 defaultTimedEventDuration 设置为 30 分钟,但在周 View 中应该为 2 小时。
我怎样才能做到这一点?使用 fullcalendar 插件是否可以实现这一点?提前致谢。
最佳答案
@Ryan89 感谢您的帮助。 slotDuration 现已正常工作,defaultTimedEventDuration 似乎无法按 View 定义。
views: {
week: {
defaultTimedEventDuration: '00:15:00',
slotDuration: "00:30:00"
},
day: {
defaultTimedEventDuration: '00:15:00',
slotDuration: "00:15:00"
},
agendaDetailed: {
type: 'agenda',
buttonText: 'Detailed',
defaultTimedEventDuration: '00:05:00',
slotDuration: "00:05:00"
}
},
关于javascript - 每个 View 的全日历选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42301726/