我无法在fullcalendar中正确自定义slotDuration

时间:2017-02-14 14:27:20

标签: javascript angular fullcalendar ionic2

我正在使用angular fullcalendar并且我想禁用插槽,这意味着在每个间隔中,我只获得一个插槽,所以我设置:

("#calendar").fullcalendar({
    ...
    slotDuration: "00:90:01",
    slotLabelInterval:'00:90:00'
    ...
});

但是,这不能正确显示日历。

enter image description here

如果我从slotDuration选项中删除fullcalendar,我会得到这个结果,这不是我想要的,因为插槽仍在那里。

enter image description here

1 个答案:

答案 0 :(得分:0)

我对你的问题有点不确定,但如果你想在议程视图中只有一个插槽。即24小时。你可以这样做。删除插槽持续时间并使用以下内容:

("#calendar").fullcalendar({
    ...
    slotLabelInterval:'24:00:00'
    ...
});

让我知道它是如何运作的。