Skip to content

Commit

Permalink
fix #892
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Dec 17, 2016
1 parent 9183e71 commit dbc40d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class BootstrapTable extends Component {
hiddenOnInsert: column.props.hiddenOnInsert,
searchable: column.props.searchable,
className: column.props.columnClassName,
editClassName: column.props.editColumnClassName,
columnTitle: column.props.columnTitle,
width: column.props.width,
text: column.props.headerText || column.props.children,
Expand Down
3 changes: 2 additions & 1 deletion src/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class TableBody extends Component {
rowIndex={ r }
colIndex={ i }
row={ data }
fieldValue={ fieldValue } />
fieldValue={ fieldValue }
className={ column.editClassName } />
);
} else {
// add by bluespring for className customize
Expand Down
7 changes: 4 additions & 3 deletions src/TableEditColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class TableEditColumn extends Component {
}

render() {
const { editable, format, customEditor } = this.props;
const { editable, format, customEditor, className } = this.props;
const { shakeEditor } = this.state;
const attr = {
ref: 'inputRef',
Expand All @@ -127,7 +127,7 @@ class TableEditColumn extends Component {
}

return (
<td ref='td' style={ { position: 'relative' } }>
<td ref='td' style={ { position: 'relative' } } className={ className }>
{ cellEditor }
<Notifier ref='notifier'/>
</td>
Expand Down Expand Up @@ -156,7 +156,8 @@ TableEditColumn.propTypes = {
PropTypes.number,
PropTypes.array,
PropTypes.object
])
]),
className: PropTypes.any
};


Expand Down
2 changes: 2 additions & 0 deletions src/TableHeaderColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ TableHeaderColumn.propTypes = {
sortFunc: PropTypes.func,
sortFuncExtraData: PropTypes.any,
columnClassName: PropTypes.any,
editColumnClassName: PropTypes.any,
columnTitle: PropTypes.bool,
filterFormatted: PropTypes.bool,
filterValue: PropTypes.func,
Expand Down Expand Up @@ -261,6 +262,7 @@ TableHeaderColumn.defaultProps = {
width: null,
sortFunc: undefined,
columnClassName: '',
editColumnClassName: '',
filterFormatted: false,
filterValue: undefined,
sort: undefined,
Expand Down

0 comments on commit dbc40d3

Please sign in to comment.