Created
November 3, 2016 15:35
-
-
Save AllenFang/29ca7e4f0a528fdf9cad4d3fd569cee0 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
| const selectRowProp = { | |
| mode: 'checkbox', | |
| clickToSelect: true, | |
| unselectable: [ 1, 3 ] // give rowkeys for unselectable row | |
| }; | |
| class UnSelectableTable extends React.Component { | |
| render() { | |
| return ( | |
| <BootstrapTable data={ products } selectRow={ selectRowProp }> | |
| <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> | |
| <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> | |
| <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> | |
| </BootstrapTable> | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment