@@ -63,46 +63,21 @@ If provided, this function will be called with an `updaterFn` when `state.rowSel
63
63
64
64
## Table Instance API
65
65
66
- ### ` getToggleRowSelectedHandler `
66
+ ### ` getToggleAllRowsSelectedHandler `
67
67
68
68
` ` ` tsx
69
- type getToggleRowSelectedHandler = (
70
- rowId : string
71
- ) => undefined | ((e : unknown ) => void )
69
+ getToggleAllRowsSelectedHandler : () => (event : unknown ) => void
72
70
` ` `
73
71
74
- Returns the props for the ` < input type = " checkbox " /> ` element in a row that will toggle row selection and provides checked/indeterminate state .
72
+ Returns a handler that can be used to toggle all rows in the table .
75
73
76
- ### ` getToggleAllRowsSelectedProps `
74
+ ### ` getToggleAllPageRowsSelectedHandler `
77
75
78
76
` ` ` tsx
79
- type ToggleRowSelectedProps = {
80
- onChange? : (e : unknown ) => void
81
- checked? : boolean
82
- title? : string
83
- indeterminate? : boolean
84
- }
85
-
86
- getToggleAllRowsSelectedProps : <
87
- TGetter extends Getter < ToggleRowSelectedProps >
88
- > (
89
- userProps ?: TGetter
90
- ) => undefined | PropGetterValue < ToggleRowSelectedProps , TGetter >
91
- ```
92
-
93
- Returns the props for the ` <input type="checkbox" /> ` element in a column header that will toggle row selection for all rows in the table and provides checked/indeterminate state.
94
-
95
- ### ` getToggleAllPageRowsSelectedProps `
96
-
97
- ``` tsx
98
- getToggleAllPageRowsSelectedProps : <
99
- TGetter extends Getter < ToggleRowSelectedProps >
100
- > (
101
- userProps ?: TGetter
102
- ) => undefined | PropGetterValue < ToggleRowSelectedProps , TGetter >
77
+ getToggleAllPageRowsSelectedHandler : () => (event : unknown ) => void
103
78
` ` `
104
79
105
- Returns the props for the ` <input type="checkbox" /> ` element in a column header that will toggle row selection for all rows on the current page and provides checked/indeterminate state .
80
+ Returns a handler that can be used to toggle all rows on the current page.
106
81
107
82
### ` setRowSelection `
108
83
@@ -120,54 +95,6 @@ resetRowSelection: () => void
120
95
121
96
Resets the **rowSelection** state for the table back to its initial state.
122
97
123
- ### ` toggleRowSelected `
124
-
125
- ``` tsx
126
- toggleRowSelected : (rowId : string , value ? : boolean ) => void
127
- ```
128
-
129
- Selects/deselects a row.
130
-
131
- ### ` getRowCanSelect `
132
-
133
- ``` tsx
134
- getRowCanSelect : (rowId : string ) => boolean
135
- ```
136
-
137
- Returns whether or not a row can be selected.
138
-
139
- ### ` getRowCanSelectSubRows `
140
-
141
- ``` tsx
142
- getRowCanSelectSubRows : (rowId : string ) => boolean
143
- ```
144
-
145
- Returns whether or not a row's sub-rows can be automatically selected when the parent row is selected.
146
-
147
- ### ` getRowCanMultiSelect `
148
-
149
- ``` tsx
150
- getRowCanMultiSelect : (rowId : string ) => boolean
151
- ```
152
-
153
- Returns whether or not a row can be multi-selected. TODO clarify
154
-
155
- ### ` getRowIsSelected `
156
-
157
- ``` tsx
158
- getRowIsSelected : (rowId : string ) => boolean
159
- ```
160
-
161
- Returns whether or not a row is selected.
162
-
163
- ### ` getRowIsSomeSelected `
164
-
165
- ``` tsx
166
- getRowIsSomeSelected : (rowId : string ) => boolean
167
- ```
168
-
169
- Returns whether or not any sub-rows of a row are selected.
170
-
171
98
### ` getIsAllRowsSelected `
172
99
173
100
` ` ` tsx
@@ -200,14 +127,6 @@ getIsSomePageRowsSelected: () => boolean
200
127
201
128
Returns whether or not any rows on the current page are selected.
202
129
203
- ### ` queueResetRowSelection `
204
-
205
- ``` tsx
206
- queueResetRowSelection : () => void
207
- ```
208
-
209
- TODO
210
-
211
130
### ` toggleAllRowsSelected `
212
131
213
132
` ` ` tsx
@@ -232,14 +151,6 @@ getPreSelectedRowModel: () => RowModel<TGenerics>
232
151
233
152
TODO
234
153
235
- ### ` queueResetRowSelection `
236
-
237
- ``` tsx
238
- queueResetRowSelection : () => void
239
- ```
240
-
241
- TODO
242
-
243
154
### ` getSelectedRowModel `
244
155
245
156
` ` ` tsx
@@ -298,6 +209,14 @@ getCanMultiSelect: () => boolean
298
209
299
210
Returns whether or not the row can multi-select. TODO clarify
300
211
212
+ ### ` getCanSelectSubRows `
213
+
214
+ ` ` ` tsx
215
+ getCanSelectSubRows : () => boolean
216
+ ` ` `
217
+
218
+ Returns whether or not the row can select sub rows automatically when the parent row is selected.
219
+
301
220
### ` toggleSelected `
302
221
303
222
` ` ` tsx
@@ -306,19 +225,10 @@ toggleSelected: (value?: boolean) => void
306
225
307
226
Selects/deselects the row.
308
227
309
- ### ` getToggleSelectedProps `
228
+ ### ` getToggleSelectedHandler `
310
229
311
230
` ` ` tsx
312
- type ToggleRowSelectedProps = {
313
- onChange? : (e : unknown ) => void
314
- checked? : boolean
315
- title? : string
316
- indeterminate? : boolean
317
- }
318
-
319
- getToggleSelectedProps : <TGetter extends Getter <ToggleRowSelectedProps >>(
320
- userProps ? : TGetter
321
- ) => undefined | PropGetterValue < ToggleRowSelectedProps , TGetter >
231
+ getToggleSelectedHandler : () => (event : unknown ) => void
322
232
` ` `
323
233
324
- Returns the props for the ` <input type="checkbox" /> ` element in the row that will toggle row selection and provides checked/indeterminate state .
234
+ Returns a handler that can be used to toggle the row.
0 commit comments