Created
October 27, 2016 15:29
-
-
Save AllenFang/7ea6fdf768a2f90c92a27cbf22ea2d5e 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 DisableSortIndicatorTable extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.options = { | |
| sortIndicator: false // disable sort indicator | |
| }; | |
| } | |
| render() { | |
| return ( | |
| <div> | |
| <BootstrapTable data={ products } options={ this.options }> | |
| <TableHeaderColumn dataField='id' isKey dataSort>Product ID</TableHeaderColumn> | |
| <TableHeaderColumn dataField='name' dataSort>Product Name</TableHeaderColumn> | |
| <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> | |
| </BootstrapTable> | |
| </div> | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment