File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ class TableHeaderColumn extends Component {
76
76
dataAlign,
77
77
dataField,
78
78
headerAlign,
79
+ headerTitle,
79
80
hidden,
80
81
sort,
81
82
dataSort,
@@ -108,7 +109,7 @@ class TableHeaderColumn extends Component {
108
109
typeof className === 'function' ? className ( ) : className ,
109
110
dataSort ? 'sort-column' : '' ) ;
110
111
111
- const title = typeof children === 'string' ? { title : children } : null ;
112
+ const title = headerTitle && typeof children === 'string' ? { title : children } : null ;
112
113
return (
113
114
< th ref = 'header-col'
114
115
className = { classes }
@@ -188,6 +189,7 @@ TableHeaderColumn.propTypes = {
188
189
dataField : PropTypes . string ,
189
190
dataAlign : PropTypes . string ,
190
191
headerAlign : PropTypes . string ,
192
+ headerTitle : PropTypes . bool ,
191
193
dataSort : PropTypes . bool ,
192
194
onSort : PropTypes . func ,
193
195
dataFormat : PropTypes . func ,
@@ -232,6 +234,7 @@ TableHeaderColumn.propTypes = {
232
234
TableHeaderColumn . defaultProps = {
233
235
dataAlign : 'left' ,
234
236
headerAlign : undefined ,
237
+ headerTitle : true ,
235
238
dataSort : false ,
236
239
dataFormat : undefined ,
237
240
csvFormat : undefined ,
You can’t perform that action at this time.
0 commit comments