Created
February 12, 2017 10:12
-
-
Save AllenFang/f04eaddd59a91f8f13b86e313817c49a 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 MultiSortTable extends React.Component { | |
| render() { | |
| return ( | |
| <div> | |
| <BootstrapTable ref='table' data={ products } multiColumnSort={ 2 }> | |
| <TableHeaderColumn dataField='id' isKey={ true } dataSort={ true }>Product ID</TableHeaderColumn> | |
| <TableHeaderColumn dataField='name' dataSort={ true }>Product Name</TableHeaderColumn> | |
| <TableHeaderColumn dataField='price' dataSort={ true }>Product Price</TableHeaderColumn> | |
| </BootstrapTable> | |
| </div> | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment