mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
Add new prop to Caption component
Add new prop of Caption component in order to check if bootstrap is in use
This commit is contained in:
parent
8ecdbf611b
commit
1d13565824
@ -83,7 +83,9 @@ class BootstrapTable extends PropsBaseResolver(Component) {
|
|||||||
|
|
||||||
const hasFooter = _.filter(columns, col => _.has(col, 'footer')).length > 0;
|
const hasFooter = _.filter(columns, col => _.has(col, 'footer')).length > 0;
|
||||||
|
|
||||||
const tableCaption = (caption && <Caption>{ caption }</Caption>);
|
const tableCaption = (
|
||||||
|
caption && <Caption bootstrap4={ bootstrap4 }>{ caption }</Caption>
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={ tableWrapperClass }>
|
<div className={ tableWrapperClass }>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user