繁体   English   中英

带有事件的全日历-无法隐藏和显示

[英]Fullcalendar with events - unable hide and show

我试图显示带有事件的FullCalendar,并且每当用户专注于某些输入时就隐藏/显示该日历。 当前看起来像:

$("input[name='start']").focus(function () {         
    $('#calendardep').fullCalendar(options).slideToggle();
);

但这仅呈现上一个/下一个图标。

PS可能我应该使用'render'但我不知道如何将其与我的选择混合使用。

隐藏时,Fullcalendar无法正确渲染。 解决方法是调用$('#calendar').fullCalendar('render');

所以:

$("input[name='start']").focus(function () {         
    $('#calendardep').fullCalendar(options).slideToggle();
    $('#calendardep').fullCalendar('render');
});

要么

$("input[name='start']").focus(function () {         
    $('#calendardep').fullCalendar(options).slideToggle(400, function(){
        $('#calendardep').fullCalendar('render');
    });

});

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM