Function gridVisibleRowsSelector
- gridVisibleRowsSelector(apiRef): {
range: null | {
firstRowIndex: number;
lastRowIndex: number;
};
rows: GridRowEntry<GridValidRowModel>[];
rowToIndexMap: Map<GridValidRowModel, number>;
} Parameters
- apiRef: MutableRefObject<{
instanceId: {
id: number;
};
state: GridStateCommunity;
}>
Returns {
range: null | {
firstRowIndex: number;
lastRowIndex: number;
};
rows: GridRowEntry<GridValidRowModel>[];
rowToIndexMap: Map<GridValidRowModel, number>;
}
range: null | {
firstRowIndex: number;
lastRowIndex: number;
}
- gridVisibleRowsSelector(state, instanceId): {
range: null | {
firstRowIndex: number;
lastRowIndex: number;
};
rows: GridRowEntry<GridValidRowModel>[];
rowToIndexMap: Map<GridValidRowModel, number>;
} Parameters
- state: GridStateCommunity
- instanceId: {
id: number;
}
Returns {
range: null | {
firstRowIndex: number;
lastRowIndex: number;
};
rows: GridRowEntry<GridValidRowModel>[];
rowToIndexMap: Map<GridValidRowModel, number>;
}
range: null | {
firstRowIndex: number;
lastRowIndex: number;
}
Properties
acceptsApiRef
acceptsApiRef: boolean
Get the rows, range and rowIndex lookup map after filtering and sorting. Does not contain the collapsed children.