import { GridState } from './hooks/features/core/gridState'; import { GridApiRef } from './models/api/gridApiRef'; import { GridColumns } from './models/colDef/gridColDef'; import { GridSlotsComponent } from './models/gridSlotsComponent'; import { GridOptions, MuiEvent } from './models/gridOptions'; import { GridSlotsComponentsProps } from './models/gridSlotsComponentsProps'; import { GridStateChangeParams } from './models/params/gridStateChangeParams'; import { GridRowIdGetter, GridRowsProp } from './models/gridRows'; /** * Partial set of [[GridOptions]]. */ export declare type GridOptionsProp = Partial; /** * The grid component react props interface. */ export interface GridComponentProps extends GridOptionsProp { /** * The ref object that allows grid manipulation. Can be instantiated with [[useGridApiRef()]]. */ apiRef?: GridApiRef; /** * The label of the grid. */ 'aria-label'?: string; /** * The id of the element containing a label for the grid. */ 'aria-labelledby'?: string; /** * @ignore */ className?: string; /** * Set of columns of type [[GridColumns]]. */ columns: GridColumns; /** * Overrideable components. */ components?: GridSlotsComponent; /** * Overrideable components props dynamically passed to the component at rendering. */ componentsProps?: GridSlotsComponentsProps; /** * An error that will turn the grid into its error state and display the error component. */ error?: any; /** * Return the id of a given [[GridRowData]]. */ getRowId?: GridRowIdGetter; /** * If `true`, a loading overlay is displayed. */ loading?: boolean; /** * Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute). */ nonce?: string; /** * Set a callback fired when the state of the grid is updated. */ onStateChange?: (params: GridStateChangeParams, event: MuiEvent<{}>, details: any) => void; /** * Set of rows of type [[GridRowsProp]]. */ rows: GridRowsProp; /** * @internal enum */ signature: string; /** * Set the whole state of the grid. */ state?: Partial; /** * @ignore */ style?: React.CSSProperties; }