Interface: SdvDataGridProps<Row>
Defined in: packages/sdvtables/src/mui.ts:98
What dataGridProps returns: spread it onto <DataGrid rows={rows} {...props} />.
Type Parameters
Row
Row
Properties
columns
columns:
SdvGridColDef<Row>[]
Defined in: packages/sdvtables/src/mui.ts:99
density
density:
"comfortable"|"compact"|"standard"
Defined in: packages/sdvtables/src/mui.ts:107
The theme's density as MUI's: compact is "compact", comfortable is "standard" and social is "comfortable".
getRowClassName
getRowClassName: (
params) =>string
Defined in: packages/sdvtables/src/mui.ts:103
The row's team colour class (teamRows), else the theme's stripe on odd rows.
Parameters
params
Returns
string
getRowId
getRowId: (
row) =>string
Defined in: packages/sdvtables/src/mui.ts:101
String(row[spec.rowKey]), else the row's index in rows; checked unique and not blank when built.
Parameters
row
Row
Returns
string
rowHeight
rowHeight:
number
Defined in: packages/sdvtables/src/mui.ts:109
MUI's base row height (MUI multiplies it by the density's factor), tall enough for the tallest image.
sx
sx:
GridSx
Defined in: packages/sdvtables/src/mui.ts:105
The theme as MUI X Data Grid styles, plus the team colour classes.