Summary Row

material-table-core supports a summary row.

FieldType
renderSummaryRowfuncThe function to create the summary row

The function will be called with following parameters for each column:#

parameterType
columnsColum[]All columns of the table
columnColumnThe column to render the cell of
indexnumberThe index of the current column
dataRowData[]All data of the table
currentDataRowData[]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:#

FieldType
valueReact.ReactNodeThe value to print in the given cell of the summary row
styleReact.CSSPropertiesOptional css properties to style the cells

Examples#

Live Editor
Result