mbrn / material-table

Datatable for React based on material-ui's table with additional features

Home Page:https://material-table.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjust table height based on the data present.

ShedrackGodson opened this issue · comments

I want to make the table height automatically adjustable since my current setup make the table's height to be large even if the table is empty.

Help me with this guys

@ShedrackGodson You can use emptyRowsWhenPaging key for this case. You can refer here in options sections: material-table

<MaterialTable options={{ emptyRowsWhenPaging: false }} />

This is helpful @arjunbhandari3 , thanks