Row Pinning
The row pinning feature provides methods and state for pinning rows to the top or bottom of the table. These properties are available on the table instance when using the row pinning feature. See the row pinning guide for usage examples and configuration details.
| Prop | Type |
|---|---|
Returns all bottom pinned rows. | () => Row<TData>[] |
Returns all rows that are not pinned to the top or bottom. | () => Row<TData>[] |
Returns whether any rows are pinned. Optionally specify to only check
for pinned rows in either the top or bottom position. | ( |
Returns all top pinned rows. | () => Row<TData>[] |
Resets the rowPinning state to initialState.rowPinning, or true can be
passed to force a default blank state reset to { top: [], bottom: [], }. | ( |
Sets or updates the state.rowPinning state. | ( |
Type
() => Row<TData>[]
Description
Returns all bottom pinned rows.
Type
() => Row<TData>[]
Description
Returns all rows that are not pinned to the top or bottom.
Type
(
position?:
| false
| 'top'
| 'bottom',
) => boolean
Description
Returns whether any rows are pinned. Optionally specify to only check
for pinned rows in either the
top or bottom position.Type
() => Row<TData>[]
Description
Returns all top pinned rows.
Type
(
defaultState?: boolean,
) => void
Description
Resets the
rowPinning state to initialState.rowPinning, or true can be
passed to force a default blank state reset to { top: [], bottom: [], }.Type
(
updater:
| T
| ((old: T) => T),
) => void
Description
Sets or updates the
state.rowPinning state.