fullcalendar(Premium Scheduler插件) - 缩短天数之间的差距并显示3个月

时间:2017-11-14 08:40:09

标签: jquery fullcalendar fullcalendar-scheduler

我正在使用 fullcalendar - premium Scheduler 插件来显示 3个月视图

但无法缩小细胞内容的差距,一次显示所有3个月。

PS :我在使用许可版本时无法模拟jsFiddle示例...对不起

代码:

$(function() {
  $('#calendar').fullCalendar({
    now: '2017-11-07',
    editable: true,
    aspectRatio: 1.8,
    header: {
      left: 'today prev,next',
      center: 'title',
      right: 'month,timeline3Months'
    },
    defaultView: 'timeline3Months',
    views: {
      timeline3Months: {
        type: 'timelineMonth',
        slotDuration: { days: 1 },
        duration: { months: 3 }
      }
    },
    buttonText: {
      month: '1 Month',
      timeline3Months: '3 Months',
    },
    navLinks: true,
    events: [
      { id: '1', resourceId: 'b', start: '2017-11-15T02:00:00', end: '2017-12-08T07:00:00', title: 'Event 1' },
    ],
  });   
});

输出: enter image description here

  

通过减少单元格之间的间隙显示所有3个月而不滚动   含量

enter image description here

1 个答案:

答案 0 :(得分:1)

乌拉!

通过以下

得到答案
slotWidth: 8,