HorizonCalendar icon indicating copy to clipboard operation
HorizonCalendar copied to clipboard

How can we execute code on .horizontal pagination scroll event? [Question]

Open BredBurr opened this issue 1 year ago • 2 comments

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!

BredBurr avatar Oct 08 '23 20:10 BredBurr

Did you ever figure this out or just settle for the work around with the buttons?

misterlib avatar Apr 01 '24 02:04 misterlib

@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.

BredBurr avatar Apr 01 '24 19:04 BredBurr