This demo is forked from : https://github.com/ggascoigne/react-table-example
Demo of React Table V7 using TypeScript as well as Material UI
yarn
andyarn start
to run and edit the example
This example uses:
useGroupBy
to enable header groupsuseFilters
for per-column filters. Note that filters are displayed in a separate filter dropdown rather than being embedded in each column header.useSortBy
for column sortinguseExpanded
to allow expansion of grouped columnsuseFlexLayout
for a scalable full width tableusePagination
for paginationuseResizeColumns
for resizable columnsuseRowSelect
for row selection
Other features:
- Demonstrates hiding columns.
- use
react-json-view
to optionally display the table instance for better exploration. - use
useLocalStorage
anduseDebounce
, both from https://usehooks.com to persist table settings.
- Remove
makeStyles
calls from MUI and replace it with emotion - The following pages has been done:
- TooltipCell.tsx
- TablePagination.tsx (Removed MUI pagination, re-write)
- ResizeHandle.tsx
- Table.tsx (50%)
- TableStyles.tsx (50% done, need to clean
styled
)
-
Remove the dependency from MUI, find the alternatives for the following:
- MUI Popover
-
The current example is using MUI 4, if we have to use MUI components (e.g. Popover), we need to upgrade to MUI 5.