T
TanStack3y ago
absent-sapphire

keep table size with empty rows

When the number of rows is less than the page size, how to insert blank rows so that the height of the table is fixed and there is no blank space, similar to minRow = pageSize in the previous version
2 Replies
aware-green
aware-green3y ago
I’m not sure about the previous table version property, but remember v8 is headless. Meaning it has nothing to do with your interface / visual components. What you’re looking for is a full screen view. A great way to accomplish this is to wrap your table component in a CSS Grid div element, which has its height set at 100dvh, which is a relatively new dynamic viewport height measurement. You can find out plenty about this layout approach on MDN, etc. Just remember, it’s all gonna be your own markup and css to accomplish this, Tanstack Table V8 does state management and functionality only 😅

Did you find this page helpful?