Created
February 13, 2017 13:35
-
-
Save AllenFang/66ad7ebef9c43c699e90a76fa7fe7c46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class EditColumnClassTable extends React.Component { | |
| render() { | |
| const cellEditProps = { | |
| mode: 'click' | |
| }; | |
| return ( | |
| <BootstrapTable data={ products } cellEdit={ cellEditProps }> | |
| <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> | |
| <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> | |
| <TableHeaderColumn dataField='price' editColumnClassName='class-for-editing-cell'>Product Price</TableHeaderColumn> | |
| </BootstrapTable> | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment