Material-table: Ability to style the empty rows that are inserted by "emptyRowsWhenPaging"

Created on 14 Oct 2019  路  3Comments  路  Source: mbrn/material-table

Current I can't find a way to style the empty rows that are inserted. Being able to adjust the height of empty rows would be very useful for consistency of the table size.

wontfix

Most helpful comment

Here's a hacky way to do it:

tbody tr.MuiTableRow-root:not([index]) {
  display: none !important;
}

All 3 comments

Here's a hacky way to do it:

tbody tr.MuiTableRow-root:not([index]) {
  display: none !important;
}

just add
emptyRowsWhenPaging: false
to the tables options to disable the 'emptyRow' rendering.
the css hack will set the row details to display:none as well.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

Was this page helpful?
0 / 5 - 0 ratings