Created
October 27, 2016 14:55
-
-
Save AllenFang/a9412f07c38ce894de3316c09d5bc6b1 to your computer and use it in GitHub Desktop.
Column width
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 ColumnWidthTable extends React.Component { | |
render() { | |
return ( | |
<BootstrapTable data={ products }> | |
<TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> | |
<TableHeaderColumn dataField='name' width='150'>Product Name</TableHeaderColumn> | |
<TableHeaderColumn dataField='price' width='90'>Product Price</TableHeaderColumn> | |
</BootstrapTable> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment