Releases: gregnb/mui-datatables
Releases · gregnb/mui-datatables
Fix issues with isRowSelectable
- Includes these changes so that
isRowSelectable
updates properly when using state to storerowsSelected
#837
Add custom search render and various bug fixes
- The search bar can now be customized with the
customSearchRender
option - Fixes #762 (prevent page number being reset by searches if using
serverSide === true
) - Fixes #790 by improving styling around filter fields
- Addresses #605 with console error and better UX behavior (prevents multiple simultaneous sort directions)
- Fixes #817 by dealing with default option for
selectableRows
Allow display only download, add expanded row option for changing state, add test ids, and minor fixes
downloadOptions
now hasfilterOptions
which acceptsuseDisplayedColumnsOnly: true | false
anduseDisplayedRowsOnly: true | false
- Add
rowsExpanded
option, which works similarly torowsSelected
and enables programmable interaction with the expanded/collapsed state of the expandable rows - Fix #737
- Fix #792
- Fix #618
Fix row selection regression and responsive display bug
- Fix #312
- Fix regression caused in
2.6.3
where onRowClick needed to be disabled for row selection via click, but it accidentally disabled selection change behavior for the checkbox
Fix bugs related to row selection via click and row selection after sorting
Fix header column spacing and sort bugs
Documentation update
Update documentation for custom filter rendering
Add support for custom render, skipping download, and some bug fixes
- Added the ability to provide a custom rendering for filters via the
filterOptions: { display: Component }
option andfilterType: 'custom'
- Added the ability to skip downloading via the
onDownload
callback by returningfalse
- Fix issue where changing the amount of table data sometimes resulted in the current page being out of bounds
- Enhanced
on-table-init
example
Hotfix
- Fix column prop changes not being updated
Allow accessing nested data, allow removing rowsPerPageOptions in pagination display, and various fixes.
- Added ability to access nested data, e.g.
const data = [{ phone: { home: '215-555-5555', cell: '313-555-5555' } }]; const columns = [{ name: 'phone.home' }, { name: 'phone.cell' } ];
- Added ability to remove
rowsPerPageOptions
in pagination by supplying only one option or an empty array - Fix select toolbar height so that it is the same height as the main toolbar
- Provide the correct order in the metadata array in
customBodyRender
- Fix pagination bug when the page set was higher than the total number of pages available