File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ function addProducts(quantity) {
1717 }
1818}
1919
20- addProducts ( 5 ) ;
20+ addProducts ( 20 ) ;
2121
2222export 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 >
You can’t perform that action at this time.
0 commit comments