-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature Request] Infinite scrolling in lists / tables #3538
Comments
I'm not sure Vuetify needs this as there are plenty of libraries out there already. Today I implemented https://github.com/egoist/vue-mugen-scroll on a list without too much hassle, and was even able to utilise the Vuetify progress component. Just my 2c... |
@scp-nm There certainly are libraries that work quite well for infinite scrolling, like https://github.com/wangdahoo/vue-scroller or the one you mentioned, but they lack a "pull to refresh" functionality that also works at the bottom of a list. I haven't found any component that supports this feature and works with Vuetify. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
this would be a great feature, pagination in my limited knowledge seems a bit old school - especially in projects who have moved away from datatables and into cards |
@Twinsen343 How do you detect the bottom of the pages in mobile ? For PC, this code works but not for mobile: |
@Sabbir-Noire a good infinity pagination would use Intersection Observer API on both phone and desktop and not doing any calculations based on offsetHeight |
I think this now should be easier with the new |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is something that we intend to implement using our If you have any additional questions, please reach out to us in our Discord community. |
Hi, for the time being, I made a simple InfiniteScroll component that can work as is or as base for someone who needs more functionality. Maybe it can be useful to someone Here it is: |
closes #3538 Co-authored-by: John Leider <john@vuetifyjs.com> Co-authored-by: Kael <kaelwd@gmail.com>
New Functionality
Currently there is no support for infinite scrolling, only normal pagination (by pages).
Infinite scrolling is being used in many apps / websites / supported by many frameworks and gaining popularity pretty fast.
Scroll in a list / table until you reach the bottom of the list / table and then load another bulk of items instead of splitting it into pages.
Improvements
Bugs or Edge Cases it Helps Avoid
I think it can reduce the amount of bugs related to traditional pagination, but i don't think it will produce more bugs.
The text was updated successfully, but these errors were encountered: