Releases: jbetancur/react-data-table-component
Releases · jbetancur/react-data-table-component
v7.4.5
v7.4.4
🥃 Features 🥃
- Expose
ExpanderComponentProps
TypeScript type. You can now:
type DataRow = {
....
};
const ExpandedComponent: React.FC<ExpanderComponentProps<DataRow>> = ({ data }) => {
return <pre>{JSON.stringify(data, null, 2)}</pre>;
};
// or
function ExpandedComponent({ data }: ExpanderComponentProps<DataRow>): JSX.Element {
return <pre>{JSON.stringify(data, null, 2)}</pre>;
}
v7.4.3
v7.4.2
v7.4.1
v7.4.0
🥃 Features 🥃
lodash.orderBy
has been removed and replaced with native sorting.lodash
was a bit heavy weight as a dependency (the bundle should be smaller now) and slower than native sort in some of our performance tests (basically negligible). If you want really miss thelodash.orderBy
sorting behavior you can installlodash
yourself and use sortFunction to re-implementorderBy
.
🐞 Fixes 🐞
- #933 when using
createTheme
you may now specify one of the default themes to inherit from. This is useful if you only need to tweak a thing or 2 in each theme. See the custom theming for more details
v7.3.1
v7.3.0
🥃 New Features 🥃
- Column titles will now display a built in tooltip (using the title attribute) when a column is in a ellipses state
- This will be negated when you pass a component into a column name.
🐞 Fixes 🐞
- Fixes an issue where sort direction would default if
data
changes. Sort behavior should now be preserved - Fixes a spacing issue in columns titles