change slotDuration of fullCalendar

我们两清 提交于 2019-12-12 13:27:26

问题


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'.

My config object:

  /* 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
    }
  };

According to http://fullcalendar.io/docs/agenda/slotDuration/. But this doesn't help :(


回答1:


That's because ui-calendar is still using v1 of fullCalendar. slotDuration was introduced in v2. Instead, try using

slotMinutes : 15


来源:https://stackoverflow.com/questions/25686981/change-slotduration-of-fullcalendar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!