Releases: jbetancur/react-data-table-component
Releases · jbetancur/react-data-table-component
v6.10.0
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
- 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 />
)
v6.9.8
v6.9.7
v6.9.6
v6.9.5
Fixes
- #615 Fixes issue where overflow/wrapping CSS was being applied to custom cells when using
columns[].cell
. In any case, RDT will no longer apply any CSS to a custom cell. Pro tip: If using columns[].cell and your intention is to add a button or clickable element make sure you addbutton: true
to your column definition - #61 Accessibility. Add the missing role for rowheader
v6.9.3
v6.9.2
v6.9.1
v6.9.0
Features
- #524 - when using
paginationServer
andselectableRows
when you sort or page the selected row state will clear by default. From a UX perspective, this is the recommended default for most use cases. However, there may be cases where you will need to override this behavior. Thanks to @MaxInertia's open-source contribution you can now override with a new proppaginationServerOptions: {persistSelectedOnPageChange | persistSelectedOnSort}
.