Skip to content

Commit 49c5a3d

Browse files
committed
Revert "Init"
This reverts commit f27ec1f.
1 parent f27ec1f commit 49c5a3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+7784
-7667
lines changed

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.

ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Problem Description
22
include a detailed explanation of the problem here...
33

4-
## Code Snippet(s) or Codepen (http://codepen.io/tannerlinsley/pen/QpeZBa?editors=0010) // TODO
4+
## Code Snippet(s) or Codepen (http://codepen.io/tannerlinsley/pen/QpeZBa?editors=0010)
55

66
## Steps to Reproduce
77
1. list the steps

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Tanner Linsley
3+
Copyright (c) 2016 Tanner Linsley
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)