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.
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.Last updated on by Ryan Bower