Object passed as parameter in the row getRowClassName callback prop.

interface GridRowClassNameParams<R> {
    columns: GridColDef[];
    id: GridRowId;
    indexRelativeToCurrentPage: number;
    isFirstVisible: boolean;
    isLastVisible: boolean;
    row: R;
}

Type Parameters

Hierarchy (view full)

Properties

columns: GridColDef[]

All grid columns.

The grid row id.

indexRelativeToCurrentPage: number

Index of the row in the current page. If the pagination is disabled, it will be the index relative to all filtered rows.

isFirstVisible: boolean

Whether this row is the first visible or not.

isLastVisible: boolean

Whether this row is the last visible or not.

row: R

The row model of the row that the current cell belongs to.