I want to capture the event when the date number of a cell is clicked. I can't get dateClick to fire.
eventClick
and select
does not capture the event either
var calendarEl = document.getElementById('calendar');
calendar = new FullCalendar.Calendar(calendarEl, {
plugins: ['dayGrid', 'timeGrid', 'list', 'interaction'],
// should work according to docs.
dateClick: function(info) {
console.log(info.date.toISOString());
},
// old api for FullCalendar3
dayClick: function(info) {
console.log(info.date.toISOString());
},
// attempt to guess the interface
dateSelect: function(info) {
console.log(info.date.toISOString());
},