vkurko/calendar

refetchEvents problem

Closed this issue · 4 comments

I am trying to add an event in a second and call refetchEvents, but the calendar is not updated. Tell me what I'm doing wrong?

https://jsbin.com/liluceviba/edit?js,console,output

vkurko commented

refetchEvents only works in conjunction with eventSources. In your case, try using the addEvent method.

in my case, I need to update a lot of events, EventSource judging by the description does not suit me, there is a chance that you add a method to update all events

vkurko commented

Ok. What about ec.setOption('events', newEventsArray)?

it works, thanks!