Add more info about event in fullcalendar

How can I add more information to a specific view?

I want to display more info about my events with the dayAgenda view from my mysql table (the values that are already stored into the array coming from my json-events.php).

I read the documentation of the fullcalendar, especially about eventRender, but I do not understand the explanation of the code.

Please, how can I do that? Thanks.

Answer

Know that anywhere you can call an “event object” you can call any of the fields you desire from your array. AKA.

eventRender: function(event){
    var description = event.description; 
    var firstname = event.firstname;} //or
eventMouseover: function(event){
    var description = event.description; 
    var lastname = event.lastname;} // or
eventResize(event): function(event){
    var description = event.description; 
    var place = event.place;} // you get the picture...

Also you can specify a specific view by using…

var view = calendar.fullCalendar('getView');
if(view.name === "agendaDay"){
    // do something
}

or by using some of the built in view objects inside the callbacks like…

eventRender: function(event, element, view){
    if(view.name === "agendaDay"){
        // do something
    }
}