如何在FullCalendar中禁用营业时间

编程入门 行业动态 更新时间:2024-10-26 04:31:59
本文介绍了如何在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'

了解更多信息: 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: fullcalendar.io/docs/event_rendering/nextDayThreshold/

更多推荐

如何在FullCalendar中禁用营业时间

本文发布于:2023-10-23 01:42:39,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:营业时间   如何在   FullCalendar

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!