Created
October 27, 2016 12:56
-
-
Save AllenFang/10da97f8f5d44e073c924dfc07060ff7 to your computer and use it in GitHub Desktop.
Custom Text for Empty Data
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 NoDataTable extends React.Component { | |
render() { | |
return ( | |
<BootstrapTable data={ products } options={ { noDataText: 'This is custom text for empty data' } }> | |
<TableHeaderColumn dataField='id' isKey={ true }>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