tweak stories

This commit is contained in:
AllenFang
2018-01-21 17:11:50 +08:00
parent 045ca4adb0
commit 85f1eba7cb
62 changed files with 252 additions and 33 deletions

View File

@@ -18,6 +18,9 @@ const columns = [{
}];
const sourceCode = `\
import BootstrapTable from 'react-bootstrap-table-next';
// omit...
<BootstrapTable
keyField="id"
data={ products }

View File

@@ -18,6 +18,8 @@ const columns = [{
}];
const sourceCode = `\
import BootstrapTable from 'react-bootstrap-table-next';
const columns = [{
dataField: 'id',
text: 'Product ID'

View File

@@ -18,6 +18,8 @@ const columns = [{
}];
const sourceCode = `\
import BootstrapTable from 'react-bootstrap-table-next';
const columns = [{
dataField: 'id',
text: 'Product ID'

View File

@@ -15,9 +15,12 @@ const columns = [{
}];
const sourceCode = `\
import BootstrapTable from 'react-bootstrap-table-next';
// omit...
<BootstrapTable keyField='id' data={ [] } columns={ columns } noDataIndication="Table is Empty" />
// Following is more customizable example
// Following is a more flexible example
function indication() {
// return something here

View File

@@ -18,6 +18,9 @@ const columns = [{
}];
const sourceCode = `\
import BootstrapTable from 'react-bootstrap-table-next';
// omit...
<BootstrapTable
keyField="id"
data={ products }