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

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

Features

This release is mainly around the context menu when using selectableRows allowing for better customization/localization.

Selectable Rows Context Menu #406

  • A new prop contextMessage now allows you to override the default message parts. For example, for localization in Spanish contextMessage={{ singular: 'artículo', plural: 'artículos', message: 'seleccionada' }} results in 1 artículo seleccionada or 2 artículos seleccionada
    • RTL is supported if you have the dir=rtl attribute defined on the html or body element.
  • A new prop noContextMenu can now be used to hide the context menu permanently
  • A new prop contextComponent can now be used if you want to pass in your own custom component to the context menu. Should you need access to the number of items selected the custom component will have access to selectedCount via its props. Note thatcontextMessage and contextActions will be ignored when using contextComponent

Fixes

  • #344 Pagination buttons will now be in the correct orientation when using RTL layouts

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

NewReleases is sending notifications on new releases.