-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
How to implement MuiVirtualizedTable in React Window? #230
Comments
I just learned, that |
@janhesters could you please share how you managed to use React Window with material-ui's table? that would be awesome! thanks |
@littletower here's an example I made that roughly follows the original material-ui example: https://codesandbox.io/s/material-ui-react-window-virtualized-table-example-byv8n The actual implementation itself is fairly simple you basically just wrap your table rows in a |
@samuelcolburn Could you re-post that example? Seems to be a broken link. Also, since it's not actually a |
@cmacdonnacha here's the link again, I think it was changed to private because I changed my default Code Sandbox profile settings. Apologies to anyone who ran into the same issue. Ping me again if it still doesn't work: https://codesandbox.io/s/material-ui-react-window-virtualized-table-example-byv8n?file=/index.js As for your question regarding Note: I haven't looked at this example for a long time so I make no guarantees about its quality. I did make some updates just now: added some documentation and changed the file structure, but the logic remains the same. If I were to use this in production, I would probably do a deeper review to see if there's an easier/better/cleaner way to implement it. |
@samuelcolburn any idea on how to use it will FixedSizeGrid ? |
I'm using Material UI for my styling and have a large table that starts to get laggy.
So I found this tutorial on using React Virtualized Table in the docs. But in it
MuiVirtualizedTable
uses React Virtualized Table and not React Window. In the former's docs it says:So my question is: Is there a way to use React Window instead of RVT? If yes, how? The demo for RVT uses a component called
Table
which is not exposed by the React Window API.The text was updated successfully, but these errors were encountered: