更改 fullCalendar 的 slotDuration [英] change slotDuration of fullCalendar

查看:38
本文介绍了更改 fullCalendar 的 slotDuration的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ui-calendar(女巫基于 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-calendar 还在使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆