Releases: jbetancur/react-data-table-component
Releases · jbetancur/react-data-table-component
v6.2.2
Fixes
- #434 column
selector
is no longer required when defining a column and it will no longer throw an exception or a typescript error as there are use cases when you don't need a selector (e.g. action columns). However, if you want to display data and/or sort aselector
must be used - #443 no longer throw typescript errors for
customStyles
Maintenance
- Update Dependancies
- Remove unused Dev Dependancies
- Update Test snapshots
v6.2.1
Fixes
- #420 -when inlining a function into
selectableRowsSelected
whereonSeletedRowsChange
triggers a state change should no longer breakselectableRows
. It's however recommended that you do not use an inline function as this causes an unnecessary re-render of RDT. In both casesselectableRows
should no longer break. Refer to how React re-renders based on equality for background info. - #424 - when using typescript
columns[].name
will now accept a number or a React component
v6.2.0
Features
- #358 - Improved Accessibility. You can now tab through all the component buttons, expanders, native selects and also the column titles. You can use the Enter key on a column to sort. There will be more accessibility improvements to come but if anything was missed please open an issue.
- #394 You can now use
expandableInheritConditionalStyles
to allowconditionalRowStyles
inherit to the ExpanderRow. You will still need to handle your own style inheritance in your Expander Component - #326 There is now an option to highlight a row when it is selected using
selectableRowsHighlight
- New kitchen sink style story added.
Minor changes to themes
This only affects you if you are using certain properties with createTheme
, defaultThemes
, or customStyles A couple of things have changed with themes. The action
prop is now named
button.
- theme
action
is nowbutton
button: {
default: string;
focus: string;
hover: string;
disabled: string;
};
headCells
styles were renamed fromactiveStyle
toactiveSortStyle
to better reflect the intention
Apologies if either of these causes any headaches 🙏
v6.1.2
v6.1.1
v6.1.0
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 SpanishcontextMessage={{ 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 thehtml
orbody
element.
- RTL is supported if you have the
- 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 toselectedCount
via its props. Note thatcontextMessage
andcontextActions
will be ignored when usingcontextComponent
Fixes
- #344 Pagination buttons will now be in the correct orientation when using RTL layouts
v6.0.4
Fixes
- #395 - thanks @kokutaro for adding missing typescript properties
- #399
createTheme
anddefaultThemes
can now be imported when using typescript - fixed typescript definition for column selector. It now correctly accepts a function
row => row.field
- #388 when using a selector function and format together in a column definition format would be ignored - this is now fixed
Enhancements
- #397 - reduce bundle size
- add typescript config to eslint