Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BredBurr opened this issue Oct 8, 2023 · 2 comments

Comments

@BredBurr
Copy link

BredBurr commented Oct 8, 2023

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!

@misterlib
Copy link

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

@BredBurr
Copy link
Author

BredBurr commented Apr 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants