Infinite scrolling
See original GitHub issueI’m submitting a feature request
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here
Current behavior
Expected behavior
Reproduction of the problem
What is the motivation / use case for changing the behavior? When pulling data from an API, it’d be beneficial to auto-load the data once the scrollbar is at a certain percentage. The user wouldn’t have to click next for separate pages.
Please tell us about your environment:
- Table version: 0.7.x
- Angular version: 2.0.x
-
Browser: all
-
Language: all
Issue Analytics
- State:
- Created 7 years ago
- Reactions:8
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Infinite Scroll
Infinite Scroll is a JavaScript plugin that automatically adds the next page, saving users from a full page load. You've likely seen it...
Read more >What Is Infinite Scrolling and How Does It Work? - MakeUseOf
Infinite scrolling is a technique that loads more content as you scroll. It allows you to continue scrolling indefinitely and is sometimes ...
Read more >Infinite Scroll Advantages & Disadvantages | Built In
Infinite scroll is a web design technique where more content automatically and continuously loads at the bottom as users scroll down the page....
Read more >The Infinite Scroll: Why It's So Addictive and How to Break Free
The infinite scrolling design pattern was created by engineer Aza Raskin in 2006. Later refined and further developed into a JavaScript plugin ...
Read more >Infinite Scrolling - Examples - ScrollMagic
Dynamic content pages become scroll magical. An infinite-content page can be achieved by adding a scene that triggers at the bottom of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With the
event.pageSize=7
, theoffset
changes from0
to1
when I scroll down when the 8th row is fully shown. Almost like the description you gave for the ui position on the page instead of what I need to request from the server.So, what do I look for to know to request the next 7 rows from the server? I can prefetch 14 rows (first 2 pages), but how will I know when the user is getting to close to the last few rows already pre-fetched.
I must admit that I dug into the code and did something slightly drastic to accomplish this. Feels like a leaky abstraction to me, but it works:
Then, in component code:
Hi guys
I noticed that in the demo on a desktop browser, then scrolling using the arrows with a row marked, I get stuck on page 7 when trying to scrool back. Is this by design? So I reach end of data at page 8, and can scroll one page back to top of page seven. If this is a bug, then I can’t use this mode in my current project where I need real pageless/infinite scrolling.
Nb I’m using Chrome 84.0.4147.135 64bit on Windows, but I’ll do some more testing with mobile device, other browsers etc.
Thanks