如何在FullCalendar中禁用营业时间 [英] How to disable business hours in FullCalendar
问题描述
我试图将FullCallendar合并到我们的应用程序中以显示事件。现在我面临着营业时间的问题。如果任何事件在上午9点之前结束,则在月视图中它显示错误的结束日期(比实际少一天)。例如,假设我有以下两项活动:
事件1:开始日期和时间:2016-11-09T10:00,结束日期和时间:2016-11-20T17:30
活动2:开始日期和时间:2016-11-09T10:00,结束日期和时间:2016-11-20T08:30
在这种情况下,在月视图中,事件1涵盖从9到20的所有日期,但事件2是覆盖日期从9日到19日。
我在Google上尝试过这个问题,发现下面的链接
但它没有解决问题。我想禁用营业时间。我试图将它设置为false。但没有任何事情发生。
请帮助
请使用 nextDayThreshold
完整日历中的选项
nextDayThreshold:'00:00:00'
了解更多信息:
https://fullcalendar.io/docs/event_rendering/nextDayThreshold/
I am trying to incorporate FullCallendar in one of our application to show events. Now I am facing a problem with business hours. In the month view it is showing wrong end date (one day less than actual) if any event ends before 9 am. So for example, say I have two following events
Event 1: Start date&time : 2016-11-09T10:00, End date&time : 2016-11-20T17:30
Event 2: Start date&time : 2016-11-09T10:00, End date&time : 2016-11-20T08:30
In this case in the month view, Event 1 is covering all dates from 9 to 20, however Event 2 is covering dates from 9 to 19.
I tried in Google with this issue and found following link
But it does not solved the issue. I want to disable business hours. I tried by setting it false. But nothing happen.
Please help
Please use nextDayThreshold
option in full calendar
nextDayThreshold: '00:00:00'
for more information: https://fullcalendar.io/docs/event_rendering/nextDayThreshold/
这篇关于如何在FullCalendar中禁用营业时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!