Skip to content

Commit 85f1eba

Browse files
committed
tweak stories
1 parent 045ca4a commit 85f1eba

File tree

62 files changed

+252
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+252
-33
lines changed

packages/react-bootstrap-table2-example/examples/basic/borderless-table.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const columns = [{
1818
}];
1919

2020
const sourceCode = `\
21+
import BootstrapTable from 'react-bootstrap-table-next';
22+
// omit...
23+
2124
<BootstrapTable
2225
keyField="id"
2326
data={ products }

packages/react-bootstrap-table2-example/examples/basic/caption-table.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const columns = [{
1818
}];
1919

2020
const sourceCode = `\
21+
import BootstrapTable from 'react-bootstrap-table-next';
22+
2123
const columns = [{
2224
dataField: 'id',
2325
text: 'Product ID'

packages/react-bootstrap-table2-example/examples/basic/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const columns = [{
1818
}];
1919

2020
const sourceCode = `\
21+
import BootstrapTable from 'react-bootstrap-table-next';
22+
2123
const columns = [{
2224
dataField: 'id',
2325
text: 'Product ID'

packages/react-bootstrap-table2-example/examples/basic/no-data-table.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ const columns = [{
1515
}];
1616

1717
const sourceCode = `\
18+
import BootstrapTable from 'react-bootstrap-table-next';
19+
// omit...
20+
1821
<BootstrapTable keyField='id' data={ [] } columns={ columns } noDataIndication="Table is Empty" />
1922
20-
// Following is more customizable example
23+
// Following is a more flexible example
2124
2225
function indication() {
2326
// return something here

packages/react-bootstrap-table2-example/examples/basic/striped-hover-condensed-table.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const columns = [{
1818
}];
1919

2020
const sourceCode = `\
21+
import BootstrapTable from 'react-bootstrap-table-next';
22+
// omit...
23+
2124
<BootstrapTable
2225
keyField="id"
2326
data={ products }

packages/react-bootstrap-table2-example/examples/cell-edit/blur-to-save-table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ const columns = [{
1919
}];
2020

2121
const sourceCode = `\
22+
import BootstrapTable from 'react-bootstrap-table-next';
2223
import cellEditFactory from 'react-bootstrap-table2-editor';
23-
// ...
24+
2425
const columns = [{
2526
dataField: 'id',
2627
text: 'Product ID'

packages/react-bootstrap-table2-example/examples/cell-edit/cell-edit-class-table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ const columns = [{
2323
}];
2424

2525
const sourceCode = `\
26+
import BootstrapTable from 'react-bootstrap-table-next';
2627
import cellEditFactory from 'react-bootstrap-table2-editor';
27-
// ...
28+
2829
const columns = [{
2930
dataField: 'id',
3031
text: 'Product ID'

packages/react-bootstrap-table2-example/examples/cell-edit/cell-edit-hooks-table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ const columns = [{
2121
}];
2222

2323
const sourceCode = `\
24+
import BootstrapTable from 'react-bootstrap-table-next';
2425
import cellEditFactory from 'react-bootstrap-table2-editor';
25-
// ...
26+
2627
const columns = [{
2728
dataField: 'id',
2829
text: 'Product ID'

packages/react-bootstrap-table2-example/examples/cell-edit/cell-edit-style-table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ const columns = [{
2727
}];
2828

2929
const sourceCode = `\
30+
import BootstrapTable from 'react-bootstrap-table-next';
3031
import cellEditFactory from 'react-bootstrap-table2-editor';
31-
// ...
32+
3233
const columns = [{
3334
dataField: 'id',
3435
text: 'Product ID'

packages/react-bootstrap-table2-example/examples/cell-edit/cell-edit-validator-table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ const columns = [{
3434
}];
3535

3636
const sourceCode = `\
37+
import BootstrapTable from 'react-bootstrap-table-next';
3738
import cellEditFactory from 'react-bootstrap-table2-editor';
38-
// ...
39+
3940
const columns = [{
4041
dataField: 'id',
4142
text: 'Product ID'

0 commit comments

Comments
 (0)