vkurko/calendar

is there any flag/callback function i can use to determine the events are loaded/refreshed?

smallst opened this issue · 8 comments

since i saw eventdidmount function won't be called when event is refresh, i think i can't know when did the calendar loaded. (i want to do some programmatic click event on calendar)

what i want to do is just, when calendar refetch the events and finish updating doms, i'd like to pick some events out and add some class into dom. what can i do?

Won't eventContent work for you in this case?

The old version of FullCalendar had a callback eventAfterAllRender that might be useful. It seems that some users are missing it in the modern version.

Perhaps Event Calendar should have such a callback?

ya eventContent maybe work. acutally what i want to do is:
i have some events, and i want to pick the most recent one before today. So if i pre-mark the most recent event , maybe eventContent can recognize the date i want to update. (while, when event render finished, i can pick the ec-today and goes back for most recent event, which is simpler) but acutally what i want to do is if i find the date, i would click the event on it to trigger the eventClick. ... oh maybe i could do click in eventContent ... although it sounds strange 😂
anyway let me try and see if i could close this issue

vkurko commented

let me try and see if i could close this issue

Any success?

@vkurko
Really don't understand why there is no callback fired when all events are rendered. This functionnality was awesome in the v3 and many people need this

vkurko commented

@vkurko Really don't understand why there is no callback fired when all events are rendered. This functionnality was awesome in the v3 and many people need this

Ok, I'll implement it.