Mapping Data From Database Into A Json Object Fullcalendar
I've installed Fullcalendar bundle (Symfony2) and all the events that I'm adding were showing correctly. Now I add eventClick function in Fullcalendar.js (it works with open.wind
Solution 1:
If you read the documentation of eventClick at https://fullcalendar.io/docs/mouse/eventClick/ it shows you the parameters available to the callback, which includes an "event" object containing details of the clicked event.
So you can do something like this:
eventClick: function( event, jsEvent, view )
{
alert(event.title);
}
You can find more properties of the event object here: https://fullcalendar.io/docs/event_data/Event_Object/ in case you want to use other information about the event.
Post a Comment for "Mapping Data From Database Into A Json Object Fullcalendar"