Infinite scroll for Ant Table
See original GitHub issueWhat problem does this feature solve?
As great as ant’s pagination is, it is also something that is not very modern. I’d like to wrap the table in a infinite scroll that would make ajax request and fetch more rows upon scrolling (Refer here). This is a simple example of creating such a table.
What does the proposed API look like?
To be honest, am not too sure at this point.
For a start we could wrap the Table in an InfiniteLoader
HOC and have a event handler prop on the table onScroll
that is triggered when the table is scrolled. The purpose of the InfiniteLoader
would be to help break large data sets down into chunks that could be just-in-time loaded as they were scrolled into view.
I’ll be happy to send forth a PR if you think this might be useful. If not, please feel free to close this item.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:15
- Comments:18 (5 by maintainers)
Top Results From Across the Web
Infinite scroll for Ant Table · Issue #22928 - GitHub
I have searched the issues of this repository and believe that this is not a duplicate. What problem does this feature solve?
Read more >Ant Design Table with Infinite Scrolling - CodeSandbox
CodeSandbox is an online editor tailored for web applications.
Read more >antd-table-infinity - npm
An infinite scroll component based on antd table that supports virtual scrolling & high-performance form http://keruyun.com/.
Read more >Infinite Scroll Table- Ant Design Demo - CodePen
Infinite Scroll Table - Ant Design Demo · Jose Manuel Benavides
Read more >Ant Design Table Scroll Event - Stack Overflow
Didn't manage to find such feature in antd table, I used lazy pagination instead of infinite scrolling to work with big data. –...
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 Free
Top 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
Wohoo, it is very easy to implement dynamic rows loading/infinite scrolling on antd table, I can chunk the httpRequest with this code:
I don’t think this feature should be included in antd. For it’s hard to decide that which element’s scroll events we should listen to.
And you can implement this in your own component easily.