问题
I am trying to drop an external event into a resourceTimeGridDay but can't find the current resource id in the view. Where in the info object is the resource id listed?
eventReceive(info) {
console.log("eventReceive:", info);
}
回答1:
The resource is in : info.event._def.resourceIds
console.log('eventReceive', info.event._def.resourceIds);
回答2:
Problem is solved.
info.event.getResources() will return an array of resources.
Here is the solution: https://github.com/fullcalendar/fullcalendar/issues/5215#event-2936400933
来源:https://stackoverflow.com/questions/59644244/how-to-get-resource-id-on-eventreceive-in-resourcetimegridday-in-fullcalendar