facebookarchive / fixed-data-table

A React table component designed to allow presenting thousands of rows of data.
http://facebook.github.io/fixed-data-table/
Other
4.3k stars 553 forks source link

Can I get current row index using onScrollStart/onScrollEnd ? #505

Open follower90 opened 7 years ago

follower90 commented 7 years ago

onScrollStart and onScrollEnd handlers give only offset values. Can i get first visible row index or something, that gives ability to pick item data of it from my state?

wcjordan commented 6 years ago

This feature exists on the [fixed-data-table-2 fork|https://github.com/schrodinger/fixed-data-table-2]. If you're interested. This repo is pretty much abandoned, but we're actively bug fixing and taking pull requests on the fork.

follower90 commented 6 years ago

I have found fixed-data-table has firstRowIndex in state, thats what I need. Investigating how to get it from there