HorizonCalendar
HorizonCalendar copied to clipboard
How can we execute code on .horizontal pagination scroll event? [Question]
While browsing the code and searching through issues on GitHub, I haven't found a way to execute some arbitrary code on Scroll event in a .horizontal paginated calendar. Is this even possible?
Why would I need that? - When the user swipes to see a new month, I need to query the database for data for that month only.
P.S. I guess my temporary solution would be to disable scrolling, create "next" and "previous" buttons, and add my code there.
P.P.S. Thanks again for this amazing library!
Did you ever figure this out or just settle for the work around with the buttons?
@misterlib I've temporarily settled for the "Previous" and "Next" buttons solution. But having something like .onMonthScroll
, or .onMonthChange
, or .onYearChange
would be amazing. I currently don't have the time to look into that at all. Maybe later.