使用 fullcalendar 我需要无需重新加载页面即可更改slotDuration
参数取决于其他条件:
我在一种情况下这样做
$('#calendar').fullCalendar('option', 'slotDuration', '00:15:00');
在其他情况下
$('#calendar').fullCalendar('option', 'slotDuration', '00:30:00');
但看起来它不起作用,因为我总是看到 fullcalendarslotDuration=30
(2 个槽)分钟,正如初始化时所调用的那样。
如果有办法吗?
现在,您可以设置dynamically
without 破坏 the calendar
.
$('#cc-calendar')
.fullCalendar('option','slotDuration','00:10:00');
在这里,我们与Dynamically get/set Options
的特征fullcalendar
.
欲了解更多信息,请查看:https://fullcalendar.io/docs/utilities/dynamic_options/ https://fullcalendar.io/docs/utilities/dynamic_options/
祝你好运。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)