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
* Add column resizing for non pivot columns.
* Fixing resizing UI issues and mobile functionality.
* Remove calling onChange during resize events so that server example doesn't refetch data every time a column resizes.
// Controlled State Overrides (see Fully Controlled Component section)
158
160
page:undefined,
159
161
pageSize:undefined,
160
-
sorting:undefined
162
+
sorting:undefined,
161
163
162
164
// Controlled State Callbacks
163
165
onExpandSubComponent:undefined,
164
166
onPageChange:undefined,
165
167
onPageSizeChange:undefined,
166
168
onSortingChange:undefined,
167
169
onFilteringChange:undefined,
170
+
onResize:undefined,
168
171
169
172
// Pivoting
170
173
pivotBy:undefined,
@@ -209,6 +212,7 @@ These are all of the available props (and their default values) for the main `<R
209
212
getPaginationProps: () => ({}),
210
213
getLoadingProps: () => ({}),
211
214
getNoDataProps: () => ({}),
215
+
getResizerProps: () => ({}),
212
216
213
217
// Global Column Defaults
214
218
column: {
@@ -449,6 +453,8 @@ Every single built-in component's props can be dynamically extended using any on
449
453
getTdProps={fn}
450
454
getPaginationProps={fn}
451
455
getLoadingProps={fn}
456
+
getNoDataProps: {fn},
457
+
getResizerProps: {fn}
452
458
/>
453
459
```
454
460
@@ -635,6 +641,7 @@ Here are the props and their corresponding callbacks that control the state of t
635
641
onSortingChange={(column, shiftKey) => {...}} // Called when a sortable column header is clicked with the column itself and if the shiftkey was held. If the column is a pivoted column, `column` will be an array of columns
636
642
onExpandRow={(index, event) => {...}} // Called when an expander is clicked. Use this to manage `expandedRows`
637
643
onFilteringChange={(column, value) => {...}} // Called when a user enters a value into a filter input field or the value passed to the onFilterChange handler by the filterRender option.
644
+
onResize={(column, event, isTouch) => {...}} // Called when a user clicks on a resizing component (the right edge of a column header)
0 commit comments