UNPKG

@mui/x-data-grid

Version:

The community edition of the data grid component (MUI X).

36 lines (35 loc) 1.41 kB
import * as React from 'react'; import { GridRowId, GridRowModel } from '../models/gridRows'; import { GridEditRowsModel } from '../models/gridEditRowModel'; import { GridStateColDef } from '../models/colDef/gridColDef'; import { GridCellIdentifier } from '../hooks/features/focus/gridFocusState'; export interface GridRowProps { rowId: GridRowId; selected: boolean; /** * Index of the row in the whole sorted and filtered dataset. * If some rows above have expanded children, this index also take those children into account. */ index: number; rowHeight: number | 'auto'; containerWidth: number; firstColumnToRender: number; lastColumnToRender: number; visibleColumns: GridStateColDef[]; renderedColumns: GridStateColDef[]; cellFocus: GridCellIdentifier | null; cellTabIndex: GridCellIdentifier | null; editRowsState: GridEditRowsModel; position: 'left' | 'center' | 'right'; row?: GridRowModel; isLastVisible?: boolean; onClick?: React.MouseEventHandler<HTMLDivElement>; onDoubleClick?: React.MouseEventHandler<HTMLDivElement>; onMouseEnter?: React.MouseEventHandler<HTMLDivElement>; onMouseLeave?: React.MouseEventHandler<HTMLDivElement>; } declare function GridRow(props: React.HTMLAttributes<HTMLDivElement> & GridRowProps): JSX.Element; declare namespace GridRow { var propTypes: any; } export { GridRow };