How to access collected jQuery FullCalendar event data?

Neil picture Neil · Aug 12, 2011 · Viewed 35.3k times · Source

I work on a project that is based on the draggable events demo concept. I would like to be able to access the events data that has been collected as you add events to the calendar.

Is there a hook to access all the data that's been collected? I'm thinking something like:

$('#calendar').fullCalendar.getEvents();

I'd like to have a button call on the page outside of the calendar that gets all the data that has been collected and sends it back to the server as a string of JSON.

Answer

Lobstrosity picture Lobstrosity · Aug 13, 2011
$('#calendar').fullCalendar('clientEvents');

Documentation