Row Selection
The row selection feature provides methods and state for selecting and managing selected rows in the table. These properties are available on the table instance when using the row selection feature. See the row selection guide for usage examples and configuration details.
| Prop | Type |
|---|---|
Returns the row model of all rows that are selected after filtering has been
applied. | () => { |
Returns the row model of all rows that are selected after grouping has been
applied. | () => { |
Returns whether all rows on the current page are selected. | () => boolean |
Returns whether all rows in the table are selected. | () => boolean |
Returns whether any rows on the current page are selected. | () => boolean |
Returns whether any rows in the table are selected. | () => boolean |
Returns the core row model of all rows before row selection has been applied. | () => { |
Returns the row model of all rows that are selected. | () => { |
Returns a handler that can be used to toggle all rows on the current page. | () => ( |
Returns a handler that can be used to toggle all rows in the table. | () => ( |
Resets the rowSelection state to the initialState.rowSelection, or true
can be passed to force a default blank state reset to {}. | ( |
Sets or updates the state.rowSelection state. | ( |
Selects/deselects all rows on the current page. | ( |
Selects/deselects all rows in the table. | ( |
Type
() => {
flatRows: Row[]
rows: Row[]
rowsById: Record
}
Description
Returns the row model of all rows that are selected after filtering has been
applied.
Type
() => {
flatRows: Row[]
rows: Row[]
rowsById: Record
}
Description
Returns the row model of all rows that are selected after grouping has been
applied.
Type
() => boolean
Description
Returns whether all rows on the current page are selected.
Type
() => boolean
Description
Returns whether all rows in the table are selected.
Type
() => boolean
Description
Returns whether any rows on the current page are selected.
Type
() => boolean
Description
Returns whether any rows in the table are selected.
Type
() => {
flatRows: Row[]
rows: Row[]
rowsById: Record
}
Description
Returns the core row model of all rows before row selection has been applied.
Type
() => {
flatRows: Row[]
rows: Row[]
rowsById: Record
}
Description
Returns the row model of all rows that are selected.
Type
() => (
event: unknown,
) => void
Description
Returns a handler that can be used to toggle all rows on the current page.
Type
() => (
event: unknown,
) => void
Description
Returns a handler that can be used to toggle all rows in the table.
Type
(
defaultState?: boolean,
) => void
Description
Resets the
rowSelection state to the initialState.rowSelection, or true
can be passed to force a default blank state reset to {}.Type
(
updater:
| T
| ((old: T) => T),
) => void
Description
Sets or updates the
state.rowSelection state.Type
(
value?: boolean,
) => void
Description
Selects/deselects all rows on the current page.
Type
(
value?: boolean,
) => void
Description
Selects/deselects all rows in the table.