seankenny / fullcalendar

Full-sized drag & drop event calendar (jQuery plugin)
http://arshaw.com/fullcalendar/
MIT License
60 stars 39 forks source link

Dynamically add resource #50

Open rasmuschristensen opened 9 years ago

rasmuschristensen commented 9 years ago

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 commented 9 years ago

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