I’m using the fullcalendar component version 2.0.0, which the documentation link here says corresponds to fullcalendar version 3.8.2. I am also using the timelineWeek view for the calendar with resources, which is supposed to allow the onDayClick to use resource as the fourth param.
The onDayClick event has the following function definition:
/**
* @param {Date} date
* @param {JSEvent} event
* @param {CustomType<svy-fullcalendar.ViewType>} view
* @param {CustomType<svy-fullcalendar.ResourceType>} [resource]
* @properties={typeid:24,uuid:"1749BEE4-2734-4632-811E-B8817C74AEA6"}
*/
function onDayClick(date, event, view, resource) {
forms.el_dispatch_calendar_jobs_popup.setDate(date);
forms.el_dispatch_calendar_jobs_popup.show('Assign Job', 1100, 400);
// Set the vehicle lookup date back to today, so that later the scheduler doesn't try to use the
// date that was just clicked on the Calendar.
forms.el_vehicle_lookup.setVehicleLookupDate(new Date());
initCalendar(date, null); // runs after the popup exits
}
Unfortunately, the resource param is never given a value (debugger always says “undefined”).