How do I properly load the jQuery fullcalendar plugin in a hidden div

后端 未结 10 1280
执念已碎
执念已碎 2021-01-01 16:47

I\'m using the jQuery tools tabs to divide my page into tabs. One of those tabs contain a jQuery Fullcalendar. Because I load JavaScript last in the page for speed and to av

10条回答
  •  再見小時候
    2021-01-01 17:29

    I know this question is ancient, but it came out first while I was searching for the solution for the same problem. For some reason the proposed solution with render doesn't work in some specific cases (if the inactive tab is loaded with calendar entries), so I had to refetchEvents.

    The code is as follows:

    $('#calendar').fullCalendar('render');
    $('#calendar').fullCalendar('refetchEvents');
    

提交回复
热议问题