vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
1.23k stars 108 forks source link

updating all events #129

Closed hmzxpcm closed 1 year ago

hmzxpcm commented 1 year ago

Please tell me how I can update all events. The component has methods of working with the event, but in my case, I need to update all the events without restarting the component (in order to save the scroll position). Updated events come from the server

vkurko commented 1 year ago

To load data into the calendar from the server, you need to use the eventSources option. Then, to reload the data, you can use the refetchEvents method.