You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* recreate row pinning feature, example and docs
* upgrade example version
* default keepPinnedRows to true
* add some row pinning unit tests
* add row pinning example to config
Enables/disables row pinning for all rows in the table.
69
+
70
+
### `keepPinnedRows`
71
+
72
+
```tsx
73
+
keepPinnedRows?:boolean
74
+
```
75
+
76
+
When `false`, pinned rows will not be visible if they are filtered or paginated out of the table. When `true`, pinned rows will always be visible regardless of filtering or pagination. Defaults to `true`.
If provided, this function will be called with an `updaterFn` when `state.columnPinning` changes. This overrides the default internal state management, so you will need to persist the state change either fully or partially outside of the table.
47
85
86
+
### `onRowPinningChange`
87
+
88
+
```tsx
89
+
onRowPinningChange?:OnChangeFn<RowPinningState>
90
+
```
91
+
92
+
If provided, this function will be called with an `updaterFn` when `state.rowPinning` changes. This overrides the default internal state management, so you will need to persist the state change either fully or partially outside of the table.
Resets the **columnPinning** state to `initialState.columnPinning`, or `true` can be passed to force a default blank state reset to `{ left: [], right: [], }`.
75
129
130
+
### `resetRowPinning`
131
+
132
+
```tsx
133
+
resetRowPinning: (defaultState?:boolean) =>void
134
+
```
135
+
136
+
Resets the **rowPinning** state to `initialState.rowPinning`, or `true` can be passed to force a default blank state reset to `{}`.
137
+
76
138
### `getIsSomeColumnsPinned`
77
139
78
140
```tsx
@@ -83,6 +145,14 @@ Returns whether or not any columns are pinned. Optionally specify to only check
@@ -19,3 +20,8 @@ There are 3 table features that can reorder columns, which happen in the followi
19
20
1.**Column Pinning** - If pinning, columns are split into left, center (unpinned), and right pinned columns.
20
21
2. Manual [Column Ordering](../guide/column-ordering) - A manually specified column order is applied.
21
22
3.[Grouping](../guide/grouping) - If grouping is enabled, a grouping state is active, and `tableOptions.columnGroupingMode` is set to `'reorder' | 'remove'`, then the grouped columns are reordered to the start of the column flow.
23
+
24
+
There are 2 table features that can reorder rows, which happen in the following order:
25
+
26
+
1.**Row Pinning** - If pinning, rows are split into top, center (unpinned), and bottom pinned rows.
0 commit comments