如何在Fullcalendar Jquery中将时间选择限制为一天? [英] How to limit timeslot selection to one day in Fullcalendar Jquery?

查看:122
本文介绍了如何在Fullcalendar Jquery中将时间选择限制为一天?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想选择时间段并只在特定的开始日期创建活动。该选择不应在下一个或前几天启用。
如下图所示,我已于11月11日星期一(上午6点30分)开始活动,结束时间应该在同一天。用户不应该能够选择下一天或前几天。
在Google日历中,您可以看到此功能。

I want to select time slots and create event only on the particular start date. the selection should not be enable for next or previous days. For Example in the below image I have started the event on Mon 11/10 (6.30 am) the end time should be within the same day. The User should not be able to select next days or previous days. In Google calendar you can see this feature.

请分享我如何在此处执行此操作。
感谢您的时间。

Kindly share how can I do this here. Thanks for you time.

推荐答案

您可以使用

you could use

selectConstraint:{
  start: '00:01', 
  end: '23:59', 
},

这篇关于如何在Fullcalendar Jquery中将时间选择限制为一天?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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