I'd like to display different event information with different views.
In view 'month' I'd like to only display the most necessary data, like 'title'.
But in view 'listMonth' I'd like to display additional information about an event.
I tried the following but have no idea why this doesn't change the event's title when in listMonth view.
$("#calendar").fullCalendar({
views: {
listMonth: {
buttonText: 'list',
displayEventTime: true
}
},
events: [{
title: 'event1',
id: '1',
start: '2018-01-13T11:00:00',
end: '2018-01-13T15:00:00',
addtlTitle: 'event1, where, what, how'
}],
eventRender: function(event, element, view) {
if (view.name == "listMonth") {
event.title = event.addtlTitle;
}
}
});