github jbetancur/react-data-table-component v6.0.0

latest releases: v7.6.2, v7.6.1, v7.6.0...
4 years ago

This is a major release that has some breaking changes regarding the customTheme prop, which has been removed in favor of customStyles, theme, and createTheme.

🍺 Features 🍺

  • #355 A new ✊very powerful ✊prop customStyles allows you to customize RDT's key components using css-in-js. Your reference for the base styles are here. See the README Theming and Customization section for more details as well as the storybook examples.
  • #355 A new helper createTheme allows you to create your own color theme for cases where you simply just want to change the colors of text, background etc. You can then set that new theme with the theme prop. Your reference for the themes are here. See the README Theming and Customization section for more details as well as the storybook examples.
    #355 The new theme prop comes with two out of the box color themes default and dark.
  • #359 Column selectors now accept a callback e.g. selector: row => row.field is equal to selector: 'field'.

🐞 Bug Fixes 🐞

  • #304 Fix errant browser warning

πŸ”₯ Breaking πŸ”₯

  • #355 customTheme has been removed. in favor of customStyles. You will need to adapt your customizations either by using the customStyles and/or createTheme and theme. I realize this may be cumbersome to those that have customized using customTheme, but I receive many tickets around customization and strongly feel the the flexibility that customStyles provides will outweigh the inconvenience. Additionally the move to customStyles paved the way for much needed cleanup.
  • #355 Some very slight formatting changes regarding how cell padding calculations are being done for TableCell and TableCol.
  • #363 - No longer bundle in the memoize-one library as a memoization helper. There was really no need to host memoization-one unless you are using class components and need to memoize. It that s the case you can just import the library separately.

Don't miss a new react-data-table-component release

NewReleases is sending notifications on new releases.