Commit Graph

177 Commits

Author SHA1 Message Date
Rootul Patel
41647dfd35
Link to React docs for useMemo & useCallback (#2042) 2020-04-01 10:34:38 -06:00
Jeff Emery
354d9bed14
Fix FAQ path in useFilters.md (#2067)
Path just needed to back up ./ to ../
2020-03-29 11:12:41 -06:00
Jason Clark
d2acfc4235
New documentation site built with Docz (#2013)
* size-snapshot created?

* Added docz for documentation site

* Modified .gitignore to get rid of .docz internal stuff

* Update all doc links to point to proper paths with docz

* Removed .docz folder from Git

Co-authored-by: Jason Clark <jason.clark@tcnbroadcasting.com>
2020-03-25 14:29:56 -06:00
Avi Press
d0a9b97ed0
Add dependency on Scarf for installation analytics (#2012)
* Adds dev dependency on Scarf, default opt-out. Corresponding installation instructions

* Scarf as default opt in, moved to dependencies

* Update install docs for default opt in analytics

* Remove extra period

* update yarn lock
2020-03-25 14:21:25 -06:00
mackie
2c39bd89e2
Update autoReset FAQ docs example (#2015)
This change updates the example to replace an undeclared variable with the usage of `skipPageResetRef`.
2020-03-18 15:45:25 -06:00
Stuart Casarotto
e5c2d6ba84
Fixed Example links for Controlled Pagination. (#1987) 2020-03-18 15:37:15 -06:00
Jason Clark
512f615988
Add disableGlobalFilter prop to allow for columns (and instance) to ignore global filter (#1963)
* size-snapshot created?

* Added `disableGlobalFilter` prop and associated tests

* Updated documentation

* improvement(useglobalfilter): add `disableGlobalFilter` prop

Adding `disableGlobalFilter` prop to both table and column to allow columns to be excluded from
Global Filter

* test(usefilters.test.js): added base test for disableGlobalFilter

Needed a test to make sure that disableGlobalFilter didn't break anything when applied

* Delete .size-snapshot.json

* Update README.md

Co-authored-by: Jason Clark <jason.clark@tcnbroadcasting.com>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2020-03-06 15:49:00 -07:00
R
63754a58dd
Fixed link in Table Options section (#1950) 2020-03-06 15:41:58 -07:00
Mario Ribeiro
4a483214ff
Update useRowSelect.md (#1948)
Missing documentation for `getToggleRowSelectedProps`, used on the [example](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/row-selection).

The `indeterminate` field is not documented at all, and I wonder what's the difference to the `checked` field.
2020-03-06 15:31:14 -07:00
Giorgio
b2af02407b
Add additional info for accessor docs (#1943)
Adds additional context on `accessor` field for column options.

### Context

https://github.com/tannerlinsley/react-table/issues/1927
2020-03-06 15:30:43 -07:00
ta-anders
acdb28df60
fix(usecolumnvisibility): trigger resetHiddenColumns on columns change (#1938)
fix #1919
2020-03-06 15:28:08 -07:00
Tanner Linsley
7eabe4b5cc Merge branch 'master' of https://github.com/react-tools/react-table 2020-02-15 12:45:00 -07:00
Tanner Linsley
083e81dc81 Normalize API method names and row modesl, add expandAll functionality including prop getter 2020-02-15 12:43:09 -07:00
Ryan-Sandy Lee
53f379f789
improves setAllFilters documentation (#1908) 2020-02-14 17:33:59 -07:00
Steve Liang
2bf99aaea0
docs(examples/material-ui-enhanced-table): Add more Material UI table (#1847)
* docs(examples/material-ui-enhanced-table): add more Material UI table

This enhanced Material UI table demonstrates client side pagination, sorting, global search, add
row, and delete row.

* Update EnhancedTable.js

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2020-02-14 13:19:55 -07:00
gargroh
42ad10a7d8
correct column sort fn (#1866) 2020-02-14 13:00:42 -07:00
gargroh
05d946ecfb
Following columnId instaed of columnID (#1848) 2020-02-14 12:15:30 -07:00
Tanner Linsley
21826a93e0 Merge branch 'master' of https://github.com/react-tools/react-table 2020-02-14 11:27:19 -07:00
Tanner Linsley
b989a8fa76 Changed: Tests, aggregation, hooks, columnVisibility, docs 2020-02-14 11:23:05 -07:00
Lukas Bünger
5f9950339b docs: link to the original blog post instead of medium (#1844) 2020-01-10 13:01:59 -07:00
gargroh
140ca06086 Doc for https://github.com/tannerlinsley/react-table/pull/1615 (#1843) 2020-01-10 12:56:41 -07:00
Roman Ivaskevych
2a0dc6778d fix(usepagination resetpage on globalfilter change): pageIndex reset (#1813)
autoReset pageIndex on globalFilter change

"fix #1812"
2020-01-08 16:33:25 -07:00
Manuel Beaudru
35d36db4c9 Fixes a typo in the docs (#1822) 2020-01-08 16:30:14 -07:00
Hrusikesh Panda
649259ba77 fix bad link (#1830) 2020-01-08 16:29:55 -07:00
Manuel Beaudru
017ad2884e Fix typo in docs - removes a meaningless word (#1832) 2020-01-08 16:29:39 -07:00
Ahmed Ashour
9baf3c275b Fix broken link in useTable.md (#1809) 2019-12-25 23:38:04 -07:00
Darío Hereñú
4a93e0f306 Minor contribution on line 58 (#1802)
* or just a reminder. Please obliterate at your will
2019-12-21 10:43:30 -07:00
Aaron Corley
45e5bed468 misc fixes for useGlobalFilter (#1795)
* docs(useglobalfilter.md): corrected documentation for setGlobalFilter

* fix(useglobalfilter.js): wrapped setGlobalFilter in useCallback

Wrapped setGlobalFilter in useCallback for identity stability.
2019-12-19 15:21:27 -07:00
Tanner Linsley
aa6d859ce9 Update README.md 2019-12-18 13:31:02 -07:00
Tanner Linsley
d18f1ba4d8 Add global filtering support via useGlobalFilter 2019-12-18 13:22:58 -07:00
Michael Li
80ceeee83f Update useTable.md (#1788) 2019-12-17 20:52:39 -07:00
Tanner Linsley
0df8cc5088 Update useFlexLayout.md 2019-12-17 20:46:03 -07:00
Tanner Linsley
717ea7b211 Update Docs 2019-12-17 20:44:33 -07:00
Tanner Linsley
b48cddb92b Add back useFlexLayout and full-width-resizable-table example 2019-12-17 20:41:28 -07:00
Tanner Linsley
0575c1b36d Update examples.md 2019-12-13 00:50:11 -07:00
Tanner Linsley
81dcfd8dec Merge branch 'master' of https://github.com/react-tools/react-table 2019-12-13 00:25:27 -07:00
Tanner Linsley
9fa1396f26 Mucho updates 2019-12-13 00:22:30 -07:00
Tanner Linsley
ddfa0fa227 Death of the path, fix some hooks, fix selectedRows
- Fixed an issue where dependency hooks were not being reduced properly, thus the table would rerender unnecessarily
- Renamed `toggleRowSelectedAll` to `toggleAllRowsSelected`. Duh...
- Added an `indeterminate` boolean prop to the default props for row selection toggle prop getters
- Renamed `selectedRowPaths` to `selectedRowIds`, which also no longer contains paths, but row IDs
- Grouped or nested row selection actions and state are now derived, instead of tracked in state.
- Rows now have a new property called `id`, which existed before and was derived from the `getRowId` option
- Rows now also have an `isSomeSelected` prop when using the `useRowSelect` hook, which denotes that at least one subRow is selected (if applicable)
- Rows' `path` property has been deprecated in favor of `id`
- Expanded state is now tracked with row IDs instead of paths
- RowState is now tracked with row IDs instead of paths
- `toggleExpandedByPath` has been renamed to `toggleExpandedById`, and thus accepts a row ID now, instead of a row path
2019-12-10 23:04:34 -07:00
Bart Nagel
1ac1d99f23 Fix link in documentation (#1733) 2019-12-06 21:51:34 -07:00
Tanner Linsley
439ebad063 Update faq.md 2019-12-06 16:36:17 -07:00
Tanner Linsley
67544d33ff v7.0.0-rc.3 2019-12-06 16:33:41 -07:00
Tanner Linsley
3fa2cdf388 Merge branch 'master' of https://github.com/react-tools/react-table 2019-12-06 16:30:42 -07:00
Tanner Linsley
562a2feaef v7.0.0-rc.2 2019-12-06 16:30:08 -07:00
Alberico
176986a07a docs(docs/api/readme.md): fix to useTable link that was giving 404 (#1726)
In the /docs/api/README.md the useTable link was linking to the file ./usetable.md that doesn't
exist, now it links to ./useTable
2019-12-06 10:25:15 -05:00
ggascoigne
546cb4e076 put useFilters docs in correct file (#1723) 2019-12-06 01:18:48 -05:00
Tanner Linsley
438ce81fc5 Update API doc links 2019-12-05 23:14:23 -05:00
Tanner Linsley
a33a008608 Add Footer Support 2019-12-05 23:11:50 -05:00
Tanner Linsley
8ba553871f
Add useColumnVisibility as core hook (#1700)
* Update utils.js

* Update useTable.js

* Create useColumnVisibility.js

* Update useColumnVisibility.js

* Update useColumnVisibility.js

* Convert to core hook, use new reducerHanndler/actions

* Add useColumnVisibility internal hook
2019-12-05 15:45:25 -05:00
Tanner Linsley
9829927fab Update installation.md 2019-12-04 22:54:31 -05:00
Tanner Linsley
b687cc01f0 7.0.0-beta.27 2019-12-04 22:46:53 -05:00