mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-08-12 12:00:16 +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:
+3
-1
@@ -83,7 +83,9 @@ class BootstrapTable extends PropsBaseResolver(Component) {
|
||||
|
||||
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 (
|
||||
<div className={ tableWrapperClass }>
|
||||
|
||||
Reference in New Issue
Block a user