-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for React-window #5
Comments
Hi @engPabloMartinez |
Thanks for your answer, Yes it does. I didn't have time this past weekend to do more test and research. Will try to make time this week as well. |
@GuillaumeJasmin This library is awesome! Support for React-Window would be fantastic! |
react-window and react-table-sticky seems incompatible because react-window add 2 new levels of I started an IE 11 support few weeks ago (not ready yet) because sticky css property doesn't work on IE 11, and I think this fallback is the only way to make it work with react-window, but it's a fallback and the user experience is bad because the scroll is not smooth. |
Do you have any more information regarding what workaround I could try to use when using virtualized tables? Such as what styles to apply and whatnot? |
I also encountered the same problem, can you provide a temporary solution? Thanks. |
@linxu here is a temporary solution: https://codesandbox.io/s/dazzling-field-48x39?file=/src/App.tsx If you're using the |
@jerrywithaz I tried the temporary solution and it works perfectly. |
@elaine0304 ah yes, so when you're rendering your row, I think there's a row method called row.getBodyRowProps() that is responsible for setting the table row styles i.e. the row position. You need to extract the css top position for each row and add the height of your table header. So let's say the height of your table header is 50px, then you'll want to add 50px to every table row. So, the first table row won't start at 0px it will start at 50px instead to account for the header height. |
Awesome solution! If you mainly just want a header or footer for your table, this seems like a more straightforward approach that Only addition I would suggest is using E.g.
Where TableWrapper is:
|
@jerrywithaz @CuriousMark Cool, thank you for your response. |
Is there a way to make this work without using infinite-scroller, and instead with virtualized rows? |
I wanted to make my first column of my table sticky , my table scroll is vertical and horizontal , can anyone help me with this , i am using react-window |
This library is awesome, was searching for react-table 7 with sticky columns and found this one! 👏 👏 . I need to ask if there is support for react-window with sticky columns or maybe an example? I'm trying to combine react-table + this library + react-window but apparently the react-window styles mess with the styles from this library as far as I can see.
Any recommendation? advice? Maybe it's in the roadmap?
Thanks.
The text was updated successfully, but these errors were encountered: