In FullCalendar how can I make a resource clickable?
I've checked the API but I cannot see anything about that, am I missing something?
I'm after a resource-click
-event as we have for events?
In the resourceRender callback function you can add a click handler to the second argument.
function resourceRenderCallback(resourceObj, labelTds, bodyTds){
labelTds.on('click', function(){console.log('click');});
}
This is obviously a very minimal function for the click but you can fill in that function with whatever you need. To match the docs more this would be closer to how they define the function
resourceRender: function(resourceObj, labelTds, bodyTds) {
labelTds.on('click', function(){console.log('click');});
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With