Sticky footer (bottom page) & Hide expand subrows icon (if no children) #218
-
Hey 👋 I'm wondering if there is possibility to push footer to the bottom of its available container (something as expanding table container height 100%)? Currently when rows are not possible to expand anymore (array length is 0), icon is greyed out, is there a way to hide an icon instead? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can use the Something like: <MaterialReactTable
//...
muiExpandButtonProps={({ row }) => ({
sx: {
display: row.subrows?.length ? 'flex' : 'none'
}
})
/> As for the footer, have you seen the |
Beta Was this translation helpful? Give feedback.
-
Thank you, this props works like a charm 👍
I did enable |
Beta Was this translation helpful? Give feedback.
You can use the
muiExpandButtonProps
prop to add your own CSS to those expand buttonsSomething like:
As for the footer, have you seen the
enableStickyFooter
prop? Docs here https://www.material-react-table.com/docs/guides/sticky-header