Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access collected jQuery FullCalendar event data?

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.

like image 681
Neil Avatar asked Aug 12 '11 21:08

Neil


People also ask

How do I get the date from fullCalendar?

FullCalendar's getDate returns a moment object, so you need moment's toDate() method to get date out of it. So, in you code try: console. log(currentDate.

How do I save events in fullCalendar?

You need to implement the eventResize to save the effect of dragging the event across days. ideally, create a function to post your data and call it from each event. function saveMyData(event) { jQuery. post( '/event/save', { title: event.

How do I select multiple dates in fullCalendar?

Detect when the user clicks on dates or times. Give the user the ability to select multiple dates or time slots with their mouse or touch device. Allows a user to highlight multiple days or timeslots by clicking and dragging.


1 Answers

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

Documentation

like image 52
Lobstrosity Avatar answered Sep 28 '22 14:09

Lobstrosity