komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more
http://ka-table.com
MIT License
788 stars 58 forks source link

How To: How Do I Set Virtual Infinite Scroll To Max Page Height? #296

Closed bay-jacewhitten closed 1 year ago

bay-jacewhitten commented 1 year ago

Hello, I would like to replicate this demo here => https://adazzle.github.io/react-data-grid/#/infinite-scrolling

Is there a way to achieve this with ka-table? I want to the full page height or the ability to have the page be the trigger to load more and have the page height grow.

Thanks!

komarovalexander commented 1 year ago

Hi @bay-jacewhitten you can set window.innerHeight as a container height, demo: https://stackblitz.com/edit/table-infinite-scrolling-ts-lap9ep?file=Demo.tsx

bay-jacewhitten commented 1 year ago

Thanks, I will try this later this week and let you know if I run into any issues.