2014-12-05 54 views
0

我有一個fullcalendar問題,我有一個事件發生在第3天和第4天,當事件在上午9點之前結束時,月份模式僅顯示一天,看:Fullcalendar在月份模式下無法正確顯示事件

周:(上午9點前結束)

enter image description here

月:

enter image description here

周:(上午9時後結束)

enter image description here

月:

enter image description here

我該如何解決?我想在兩個月中的月份中顯示該事件。

回答

1

您需要將nextDayThreshold屬性更改爲另一個小時,以便根據需要顯示該事件。

從文檔:

當一個事件的結束時間跨越到另一天,最短的時間一定是爲了讓它呈現,好像它是在那一天。

時間,默認: 「09:00:00」(上午9:00)

隻影響出現在全日定時事件。全天單元格 發生在月視圖,basicDay,basicWeek和 議程視圖中的全天插槽中。

實施例(文檔)在

{ start: '2014-02-04T20:00:00', end: '2014-02-05T02:00:00' } 
// goes from 8pm to 2am the next day 

更多信息: http://fullcalendar.io/docs/event_rendering/nextDayThreshold/

相關問題