material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Header and Pagination style

Open Casperius88 opened this issue 7 years ago • 3 comments

Capture

I am trying to make first and second header fixed (or sticky) using MuiThemeProvider and createMuiTheme. Until now, I've managed to make pagination fixed to bottom like this:

const theme = createMuiTheme({
  overrides: {
    MuiTableCell: {
      root: {
        padding: "5px",
      }
    },
    MTableHeader:{
      header: {
      top: '0px',
      zIndex: '0px',
      position: 'sticky',
      backgroundColor: '#fff',
  }
},
    MuiTablePagination: {
      toolbar: {
        position: 'fixed',
        bottom: '0px',
        left: '0px',
        backgroundColor: '#E7E7E7'
      }
    }
  }
});

but it seems that I can not do the same thing for MTableHeader and MuiToolbar (second header). Also, I need to add padding-top to pagination, because the last row of the body is hidden. Anh help would be much appreciated.

Casperius88 avatar Nov 29 '19 10:11 Casperius88

I'm also using this library and want to make header and pagination bar fixed. Is it possible? how?

mahdin75 avatar Dec 23 '19 08:12 mahdin75

I found a solution here.

mahdin75 avatar Dec 23 '19 09:12 mahdin75

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.

stale[bot] avatar Jun 20 '20 10:06 stale[bot]