Column Pinning
The column pinning feature provides methods and state for pinning columns to the left or right side of the table. These properties are available on the table instance when using the column pinning feature. See the column pinning guide for usage examples and configuration details.
| Prop | Type |
|---|---|
Returns all center pinned (unpinned) leaf columns. | () => Column< |
Returns whether any columns are pinned. Optionally specify to only check
for pinned columns in either the left or right position. | ( |
Returns all left pinned leaf columns. | () => Column< |
Returns all right pinned leaf columns. | () => Column< |
Resets the columnPinning state to initialState.columnPinning, or true
can be passed to force a default blank state reset to
| ( |
Sets or updates the state.columnPinning state. | ( |
Type
() => Column<
TData,
unknown,
ColumnMeta
>[]
Description
Returns all center pinned (unpinned) leaf columns.
Type
(
position?:
| false
| 'left'
| 'right',
) => boolean
Description
Returns whether any columns are pinned. Optionally specify to only check
for pinned columns in either the
left or right position.Type
() => Column<
TData,
unknown,
ColumnMeta
>[]
Description
Returns all left pinned leaf columns.
Type
() => Column<
TData,
unknown,
ColumnMeta
>[]
Description
Returns all right pinned leaf columns.
Type
(
defaultState?: boolean,
) => void
Description
Resets the
columnPinning state to initialState.columnPinning, or true
can be passed to force a default blank state reset to { left: [], right: [],
}
Type
(
updater: Updater<ColumnPinningState>,
) => void
Description
Sets or updates the
state.columnPinning state.