seankenny / fullcalendar

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

Fetch Resources #52

Open alladas opened 9 years ago

alladas commented 9 years ago

Hi guys, I am giving a try to this version of fullcalendar because of the resourceView. Seems to work fine. Also the json events fetching is working well. But I wonder how do you fetch dynamically resources? Avoiding empty resources columns?

t2thec commented 9 years ago

I too am trying to figure this out. I can't seem to refetchResources. I've tried a hacky approach so far. Can anyone tell me if this is currently possible?

I've been working towards a similar effect to FC's refetchEvents. I'll keep hacking and see what I come up with. Any help would be appreciated.

df-jsykes commented 9 years ago

function refetchResources(){ $('#calendar').fullCalendar('setResources', []); $('#calendar').fullCalendar('setResources', [{ 'id': 'yourid', 'name': 'resource' }]); $('#calendar').fullCalendar('render'); }