* add missing dependenies

* tuning webpack loader for scss

* implement noDataIndication

* add story for noDataIndication prop

* patch yarn.lock
This commit is contained in:
Allen
2017-09-02 06:10:24 -05:00
committed by GitHub
parent 47e807672f
commit 9f9f78e73b
15 changed files with 805 additions and 33 deletions
@@ -0,0 +1,32 @@
import React from 'react';
import { BootstrapTable } from 'react-bootstrap-table2';
const columns = [{
dataField: 'id',
text: 'Product ID'
}, {
dataField: 'name',
text: 'Product Name'
}, {
dataField: 'price',
text: 'Product Price'
}];
export default () => (
<div>
<BootstrapTable keyField="id" data={ [] } columns={ columns } noDataIndication="Table is Empty" />
<pre className="prettyprint lang-js"><code className="language-javascript">{`
<BootstrapTable keyField='id' data={ [] } columns={ columns } noDataIndication="Table is Empty" />
// Following is more customizable example
function indication() {
// return something here
}
<BootstrapTable keyField='id' data={ [] } columns={ columns } noDataIndication={ indication } />
`}
</code></pre>
</div>
);