Skip to content

Commit 90b6871

Browse files
committed
update example for #860
1 parent 20a0d65 commit 90b6871

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/js/basic/demo.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class Demo extends React.Component {
4747
</Panel>
4848
<Panel header={ 'Table Scroll Example' }>
4949
{ renderLinks('basic/scroll-table') }
50+
<span style={ { color: 'red' } }>
51+
You can use <code>scrollTop</code> to set the table content scroll, available value is <code>Top</code>, <code>Bottom</code> and a numeric value
52+
</span>
5053
<ScrollTable/>
5154
</Panel>
5255
</Col>

examples/js/basic/scroll-table.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ function addProducts(quantity) {
1717
}
1818
}
1919

20-
addProducts(5);
20+
addProducts(20);
2121

2222
export default class BasicTable extends React.Component {
2323
render() {
2424
return (
25-
<BootstrapTable data={ products } height='120'>
25+
<BootstrapTable data={ products } height='150' scrollTop={ 'Bottom' }>
2626
<TableHeaderColumn dataField='id' isKey={ true }>Product ID</TableHeaderColumn>
2727
<TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn>
2828
<TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn>

0 commit comments

Comments
 (0)