customd / jquery-calendar

A full day, week, and resource calendar for use with jQuery.
MIT License
62 stars 26 forks source link

Updating the calendar #45

Open Eldainorn opened 5 years ago

Eldainorn commented 5 years ago

Hello

Firstly, I would like to thank the creator for making such a cool calendar component. :)

Secondly. the question: I am showing a calendar in a "week" style. I am only showing one day at all times. I have a filter that enables users to move between days as they please. Now the problem is: Let's say that I open a calendar for today. With GET I get all the events that I would like to show for today and set them to events setting of the calendar. Then, I move to tomorrow with the aforementioned filter and again GET all the events for tomorrow. Now I would like to update or refresh the existing calendar with new events in the events setting of the calendar. How am I able to do that? I can't seem to figure it out, help would be greatly appreciated. Currently the events setting data is always the same (keeps the first value that was GETed and used to initialize the calendar), no matter which day I choose with the filter.

Regards