Is it possible to discover/extract the currently displayed events from the FullCalendar object, (ref: http://arshaw.com/fullcalendar)?
Ideally, I’d like a secondary display for events, alongside the calendar, which should show only the currently displayed events, (e.g. if the calendar is on “March 2012”, I only want to see March 2012 events in the secondary list).
I’m guessing I’ll nedd to construct some sort of filter, but was hoping I might be able to pull the details straight back off the calendar. I figure the plugin must already have established which are valid for display…
Any pointers to a function/property I’ve missed would be greatly appreciated.
Yes this is surprisingly hard to do. I’ve been digging around in FullCalendar a lot recently as I’ve been hacking a load of extra functionality into it for my own purposes. It doesn’t store the information internally in that form but you can get at it with a small hack:
Insert at line 4243 (in fullcalendar 1.5.2)
Then do this to get an array of event objects currently being displayed: