Fullcalendar - Can we add custom data to our event Json Data?
fullcalendar, javascript, jquery, json
Solution
Try It with `events:` instead of `eventSources:`
$('#calendar').fullCalendar({
events: [
{"id":"46_l","title":"CustomEvent-Chargement","start":"2013-12-02","end":"2013-12-03","className":"customEventsClass","type":1},
{"id":"46_d","title":"Custom Event-Livraison","start":"2013-12-11","end":"2013-12-12","className":"customEventsClass","type":2}
]
});
Problem
I want to send a type in my Event Json Response. Here is my code: ``` $('#calendar').fullCalendar({ eventSources: [ {"id":"46_l","title":"CustomEvent-Chargement","start":"2013-12-02","end":"2013-12-03","className":"customEventsClass","type":1}, {"id":"46_d","title":"Custom Event-Livraison","start":"2013-12-11","end":"2013-12-12","className":"customEventsClass","type":2} ] }); ``` You see I send a type in JSON Response array, is this possible? What parameter can we use for sending our custom data?