如何在FullCalendar中禁用营业时间 [英] How to disable business hours in FullCalendar

查看:528
本文介绍了如何在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

How to set the business hours

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屋!

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