Infinite Table Cell Selection API
<DataSource selectionMode="multi-cell" />
// can be "single-row", "multi-row", "multi-cell" or false
Note
To enable cell selection, you need to specify selectionMode="multi-cell"
on the <DataSource />
component.
You can retrieve the cell selection api by reading it from the api.cellSelectionApi
property.
const onReady = ({api}: {api:InfiniteTableApi<DATA_TYPE>}) => {
// do something with it
api.cellSelectionApi.selectGroupRow(['USA'])
}
<InfiniteTable<DATA_TYPE>
columns={[...]}
onReady={onReady}
See the Infinite Table API page for the main API. See the Infinite Table Keyboard Navigation API page for the keyboard navigation API. See the Infinite Table Row Selection API page for the row selection API. See the Infinite Table Column API page for the column API.
clear
An alias for deselectAll.
deselectAll
Deselects all cells in the DataGrid.
deselectCell
Deselects the specified cell.
deselectRange
Deselects the specified cell range.
isCellSelected
Boolean getter to report if a cell is selected.
mapCellSelectionPositions
Maps the selected cells using the passed fn.
selectAll
Selects all cells in the DataGrid.
selectCell
Selects the specified cell.
selectColumn
Selects all cells in the specified column.
selectRange
Selects the specified cell range.