Release Notes
Features
Hiding Columns on screen size
#150 You can now hide columns depending on the screen width by adding a column.hide
property and setting either an integer or using the built-in screen sixes for common devices sm
, md
or lg
(see README)
defaultExpandedField
Thank you @wiland for implementing #148. When using expandandableRows
you can now specify an expanded property on your data using the defaultExpandedField
prop. This will allow you to pre-expand a row before the table renders
Performance Enhancements
- #151
TableCell
was unnecessarily re-rendering on every change to the table. To give an idea of how many re-renders, there is aTableCell
for each column in each row. This specifically impacted sorting with larger amounts of data. Version 3 of RDT will have more rendering enhancements and some changes to the way props are passed to context as well as moving some components to use react hooks.