fullcalendar icon indicating copy to clipboard operation
fullcalendar copied to clipboard

Dynamically add resource

Open rasmuschristensen opened this issue 9 years ago • 1 comments

Hi, just migrated to this fork to get resources. I'm looking to add resources dynamically, I coundn't find any add function to make this happen. Is there a way to do this or do I have to code it myself?

rasmuschristensen avatar Mar 01 '15 21:03 rasmuschristensen

Just figured out I was able to make this call to replace the resources $('#calendar').fullCalendar('setResources', [{ 'id': 'someId', 'name': 'newResourceName' }]); $('#calendar').fullCalendar('render');

A render call did the trick

rasmuschristensen avatar Mar 02 '15 19:03 rasmuschristensen