Reputation: 9
In earlier versions of fullcalendar I had used this :
$('#Calendar').fullCalendar('refetchEvents');
to refetch my events on a button or after I close a form.
What is the equivalent of this call in FullCalendar V4
?
Upvotes: 0
Views: 781
Reputation: 3553
EDIT: See the comments, as of v4 you cannot access the calendar via jQuery anymore.
According to the docs, the function still exists:
https://fullcalendar.io/docs/Calendar-refetchEvents
You can simply do
calendar.refetchEvents()
whereas calendar
is the instance that you get when initializing the calendar.
PS:
On google, you can limit the search by typing site:fullcalendar.io refetchEvents
- with that search it was very easy to find the information about refetching events with v4.
Upvotes: 1