Releases: neolution-ch/react-data-table
Releases · neolution-ch/react-data-table
Release 5.14.0
Fixed
- pagination skeleton on data loading and fetching.
Release 5.13.1
Fixed
-
Virtualization height computation. This is a well know issue on Tanstack virtualizer package.
When using virtualization, assign to your table the following css:root { --your-pseudo-height--variable: 0px; } table::after { content: ""; display: block; height: var(--your-pseudo-height--variable); } ```css and use the `onPseudoHeightChange` to set it on your side ```tsx <ReactDataTable<T> ... onPseudoHeightChange={(height) => document.documentElement.style.setProperty("--your-pseudo-height--variable", `${height}px`)} />
Release 5.13.0
Changed
- Updated
react-pattern-uifrom 3.4.0 to 5.3.0
Added
virtualizationfeatures.pagingNavigationComponentsproperty to customize the paging navigation components
Release 5.12.0
Added
- option
subRowComponentto pass a render-function for a subrow. This will be rendered additionally to the subrows and if not wanted, make sure the subrows are passed as empty arrayd [], following an example:
const { table } = useReactDataTable<T>({
data,
columns,
reactTableOptions: {
enableExpanding: true,
getSubRows: (_) => [],
getRowCanExpand: (row) => row.shouldRenderSubRow,
},
});Release 5.11.0
Added
- added a flag
isStripedto theReactDataTablecomponent to enable/disable striped rows - added a flag
showClearSearchButtonto theReactDataTablecomponent to show/hide the clear search button
Release 5.10.0
Added
tableascustomFilterparameter.- export for
getModelFromColumnFilterandgetColumnFilterFromModelutility functions.
Release 5.9.1
Fixed
meta dropdownFilterin order to be controlled.
Release 5.9.0
Added
columnPinningfeature. Allows the pinning of columns.
Release 5.8.0
Added
- option
hideHeaderFiltersadded to the column meta to hide the header filter (needs to be set to true for all columns) - option
headerFilterStyleadded to the column meta to be able to style the header filter - option
customFilterNameadded to the column meta to be able to use different mappings than theaccessorof the column description
Fixed
pkg.pr.newworkflow in order to prevent caching issues
Release 5.7.0
Added
- property
onRowClickinReactDataTablein order to define a custom function to execute the row is clicked - property
enableRowClickinReactDataTablein order to define if a row should be clickable or not