react-data-table v6.10.0 Release Notes
Release Date: 2020-08-02 // over 3 years ago-
๐ Features
- ๐ #642 you can now access a rowIndex from column[]:
cell
,format
orselector
. Additionally,cell
can also access the column config as well as the id (as rendered in the DOM) of the row i.e. (row, rowIndex, column, id). See the README for more details https://github.com/jbetancur/react-data-table-component#columns
๐ Fixes/ Potentially Breaking with Typescript is you previously used IDataTableProps
0๏ธโฃ If you are importing RDT typescript interfaces such as
IDataTableProps
, they will no longer require you to pass any arguments as and you can just set the type toIDataTableProps
. This better supports a common pattern where you may want to set default props on your table and pass through the props using a wrapping component:const DBase: React.FC<IDataTableProps> = props => (<DataData {...props} dense />)
- ๐ #642 you can now access a rowIndex from column[]: