I have a Calendar, that shows some events queried from a JSON file. Currently the Calendar requests all events in all time intervals, which is very slow because there are too many.
I want to query only the events on the visible week on the calendar. So I need two things:
(i) Knowing what week is being viewed currently on the calendar
(ii) Generating an event or something similar when the user clicks on the upper-left arrows to change between weeks, as to update the data accordingly.
How can this be done?
Thanks for your valuable support.
I want to query only the events on the visible week on the calendar. So I need two things:
(i) Knowing what week is being viewed currently on the calendar
(ii) Generating an event or something similar when the user clicks on the upper-left arrows to change between weeks, as to update the data accordingly.
How can this be done?
Thanks for your valuable support.
Comment