[英]Fullcalendar with events - unable hide and show
I'm trying to show FullCalendar with events and hide/show this calendar whenever the user focuses on some input. 我试图显示带有事件的FullCalendar,并且每当用户专注于某些输入时就隐藏/显示该日历。 Currently it looks like:
当前看起来像:
$("input[name='start']").focus(function () {
$('#calendardep').fullCalendar(options).slideToggle();
);
But this is rendering only prev/next icons. 但这仅呈现上一个/下一个图标。
PS Probably I should use 'render'
but I don't know how to mix this with my options. PS可能我应该使用
'render'
但我不知道如何将其与我的选择混合使用。
Fullcalendar doesn't render correctly when hidden. 隐藏时,Fullcalendar无法正确渲染。 The workaround is to call
$('#calendar').fullCalendar('render');
解决方法是调用
$('#calendar').fullCalendar('render');
. 。
So: 所以:
$("input[name='start']").focus(function () {
$('#calendardep').fullCalendar(options).slideToggle();
$('#calendardep').fullCalendar('render');
});
or 要么
$("input[name='start']").focus(function () {
$('#calendardep').fullCalendar(options).slideToggle(400, function(){
$('#calendardep').fullCalendar('render');
});
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.