I’ve been working with Agenda this week and I’m finding it really enjoyable to work with. Loads of great features and generally easy to modify.
I am however a bit stuck on one aspect and that’s working with FullCalendar. I have FullCalendar v5 working as expected using the Docs with the following javascript:
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
headerToolbar: { center: 'dayGridMonth,timeGridWeek' },
initialView: 'timeGridWeek',
slotMinTime: "09:00:00",
slotMaxTime: "23:00:00",
"eventSources": [
{
url: '/assets/components/agenda/overview.php',
type: 'POST',
startParam: 'startdate',
endParam: 'enddate',
data: function () {
return {
//calendars: calendars || 0,|
//categories: categories || 0,|
//query: query || '',|
limit: 0
};
}
}
]
});
calendar.render();
});
I’d now like to make each event title open a modal window with full details. There is some information regarding this on the FullCalendar site but I can’t figure out how to apply it in this instance. Any pointers in the right direction greatly appreciated.
Thanks
J