Summary Row
material-table-core supports a summary row.
Field | Type | |
---|---|---|
renderSummaryRow | func | The function to create the summary row |
#
The function will be called with following parameters for each column:parameter | Type | |
---|---|---|
columns | Colum[] | All columns of the table |
column | Column | The column to render the cell of |
index | number | The index of the current column |
data | RowData[] | All data of the table |
currentData | RowData[] | The data currently displayed on the page |
#
The function can return a value and optional styles for cell that should display a value in the summary row:Field | Type | |
---|---|---|
value | React.ReactNode | The value to print in the given cell of the summary row |
style | React.CSSProperties | Optional css properties to style the cells |
#
ExamplesLive Editor
Result