改变fullCalendar的slotDuration [英] change slotDuration of fullCalendar
本文介绍了改变fullCalendar的slotDuration的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的UI日历(女巫是基于fullCalendar)和默认插槽持续时间= 00:30:00。我想将其更改为00:15:00
I'm using ui-calendar (witch is based on fullCalendar), and default slot duration = '00:30:00'. I want change it to '00:15:00'.
我的配置对象:
/* config object */
$scope.uiConfig = {
calendar:{
height: 450,
editable: true,
duration: '00:15:00',
slotDuration: '00:15:00',
header:{
left: 'title',
center: '',
right: 'today prev,next'
},
eventClick: $scope.alertOnEventClick,
eventDrop: $scope.alertOnDrop,
eventResize: $scope.alertOnResize
}
};
根据 http://fullcalendar.io/docs/agenda/slotDuration/ 。
但是,这并不能帮助:(
According to http://fullcalendar.io/docs/agenda/slotDuration/. But this doesn't help :(
推荐答案
这是因为UI的日历依然采用fullCalendar的V1。 slotDuration在v2中引入的。相反,尝试使用
That's because ui-calendar is still using v1 of fullCalendar. slotDuration was introduced in v2. Instead, try using
slotMinutes : 15
这篇关于改变fullCalendar的slotDuration的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文