File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ class BootstrapTable extends Component {
530530 { showPaginationOnBottom ? pagination : null }
531531
532532 { showToolbarOnBottom ? toolBar : null }
533- < Alert stack = { { limit : 3 } } />
533+ { this . props . renderAlert ? < Alert stack = { { limit : 3 } } /> : null }
534534 </ div >
535535 ) ;
536536 }
@@ -1709,6 +1709,7 @@ BootstrapTable.propTypes = {
17091709 fetchInfo : PropTypes . shape ( {
17101710 dataTotalSize : PropTypes . number
17111711 } ) ,
1712+ renderAlert : PropTypes . bool ,
17121713 exportCSV : PropTypes . bool ,
17131714 csvFileName : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . func ] ) ,
17141715 ignoreSinglePage : PropTypes . bool ,
@@ -1876,6 +1877,7 @@ BootstrapTable.defaultProps = {
18761877 fetchInfo : {
18771878 dataTotalSize : 0
18781879 } ,
1880+ renderAlert : true ,
18791881 exportCSV : false ,
18801882 csvFileName : 'spreadsheet.csv' ,
18811883 ignoreSinglePage : false ,
You can’t perform that action at this time.
0 commit comments