-
- -1
- ? 'header-style-disabled'
- : ''
- }
- >
- {label}
-
- {sortBy === dataKey &&
-
- }
-
-
- );
- }
-
rowClassName({ index }) {
let className = '';
if (this.props.striped) {
@@ -172,6 +151,22 @@ export default class FilterableTable extends PureComponent {
this.setState({ sortBy, sortDirection });
}
+ renderHeader({ dataKey, label, sortBy, sortDirection }) {
+ const className = this.props.expandedColumns.indexOf(label) > -1
+ ? 'header-style-disabled'
+ : 'header-style';
+ return (
+