|
| 1 | +## 6.0.0 |
| 2 | + |
| 3 | +##### New Features |
| 4 | +- New Renderers: |
| 5 | + - `Aggregated` - Custom renderer for aggregated cells |
| 6 | + - `Pivot` - Custom renderer for Pivoted Cells (utilizes `Expander` and `PivotValue`) |
| 7 | + - `PivotValue` - Custom renderer for Pivot cell values (deprecates the undocumented `pivotRender` option) |
| 8 | + - `Expander` - Custom renderer for Pivot cell Expander |
| 9 | +- Added custom sorting methods per table via `defaultSortMethod` and per column via `column.sortMethod` |
| 10 | +- Pivot columns are now visibly separate and sorted/filtered independently. |
| 11 | +- Added `column.resizable` to override global table `resizable` option for specific columns. |
| 12 | +- Added `column.sortable` to override global table `sortable` option for specific columns. |
| 13 | +- Added `column.filterable` to override global table `filterable` option for specific columns. |
| 14 | +- Added `defaultExpanded` table option. |
| 15 | +- All callbacks can now be utilized without needing to hoist and manage the piece of state they export. That is what their prop counterparts are for, so now the corresponding prop is used instead of the callback to detect a "fully controlled" state. |
| 16 | +- Prevent transitions while column resizing for a smoother resize effect. |
| 17 | +- Disable text selection while resizing columns. |
| 18 | + |
| 19 | + |
| 20 | +##### Breaking API Changes |
| 21 | +- New Renderers: |
| 22 | + - `Cell` - deprecates and replaces `render` |
| 23 | + - `Header` - deprecates and replaces `header` |
| 24 | + - `Footer` - deprecates and replaces `footer` |
| 25 | + - `Filter`- deprecates and replaces `filterRender` |
| 26 | +- Callbacks now provide the destination state as the primary parameter(s). This makes hoisting and controlling the state in redux or component state much easier. eg. |
| 27 | + - `onSorting` no longer requires you to build your own toggle logic |
| 28 | + - `onResize` no longer requires you to build your own resize logic |
| 29 | +- Renamed `onChange` callback -> `onFetchData` which will always fire when a new data model needs to be fetched (or if not using `manual`, when new data is materialized internally). |
| 30 | +- Renamed `filtering` -> `filtered` |
| 31 | +- Renamed `sorting` -> `sorted` |
| 32 | +- Renamed `expandedRows` -> `expanded` |
| 33 | +- Renamed `resizing` -> `resized` |
| 34 | +- Renamed `defaultResizing` -> `defaultResized` |
| 35 | +- Renamed `defaultFiltering` -> `defaultFiltered` |
| 36 | +- Renamed `defaultSorting` -> `defaultSorted` |
| 37 | +- Renamed `onSortingChange` -> `onSortedChange` |
| 38 | +- Renamed `onFilteringChange` -> `onFilteredChange` |
| 39 | +- Renamed `onResize` -> `onResizedChange` |
| 40 | +- Renamed `onExpandRow` -> `onExpandedChange` |
| 41 | +- Renamed `showFilters` -> `filterable` |
| 42 | +- Renamed `hideFilter` -> `filterable` (Column option. Note the true/false value is now flipped.) |
| 43 | +- `cellInfo.row` and `rowInfo.row` now reference the materialize data for the table. To reference the original row, use `cellInfo.original` and `rowInfo.original` |
| 44 | +- Removed `pivotRender` column option. You can now control how the value is displayed by overriding the `PivotValueComponent` or the individual column's `PivotValue` renderer. See [Pivoting Options Story](https://react-table.js.org/?selectedKind=2.%20Demos&selectedStory=Pivoting%20Options&full=0&down=1&left=1&panelRight=0&downPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel) for a reference on how to customize pivot column rendering. |
0 commit comments