You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing a weird issue with the calendar. I am giving an option to the user to change mode - from Default Monthly to Weekly. On changing the mode, I am not able to get the events with onTimeSelected.
Will I have to invoke or refresh the events?
I have tried with loadEvents() but all was in vain. Can you help with this issue?
I am loading events from the server and pushing events to the eventSource variable. It's working fine with the month view. When I am toggling mode ('month' to 'week'), Events are converted to a blank array.
I think you could set the mode to 'week' at the beginning, then try insert some dummy event to see if it's working. So that you could tell if it's something with the events loaded from server.
Also there are two types of event, normal event and all day events, they have different requirement of startTime and endTime.
For normal event, startTime could just be current date time, like new Date(2023,1,17,7,53,00), but for all day event, it needs created from UTC time, new Date(Date.UTC(2023, 1, 17)). https://github.com/twinssbc/Ionic2-Calendar#eventsource
I am facing a weird issue with the calendar. I am giving an option to the user to change mode - from Default Monthly to Weekly. On changing the mode, I am not able to get the events with onTimeSelected.
Will I have to invoke or refresh the events?
I have tried with loadEvents() but all was in vain. Can you help with this issue?
The text was updated successfully, but these errors were encountered: