Closed fadighattas100 closed 5 years ago
Have you solved your problem?
Close this issue because there is no response in 7 days if the problem exists reopen it and provide more information, thanks!
For other people resolving this problem in Vue, you need to use following import:
import 'bootstrap-table/dist/bootstrap-table.js'
import BootstrapTable from 'bootstrap-table/dist/bootstrap-table-vue.esm.js';
Vue.component("BootstrapTable", BootstrapTable);
make sure you have
window.Popper = require('popper.js').default;
window.$ = window.jQuery = require('jquery');
in application bootstrap,js because im using laravel vue templet or simple in app,js or any js file that load libs
then in the app.js
import 'bootstrap-table/dist/bootstrap-table.js';
window.BootstrapTable = require('bootstrap-table/dist/bootstrap-table-vue.esm.js').default;
Vue.component("BootstrapTable", BootstrapTable);
for the css in my app.sass file i added
@import '~bootstrap/dist/css/bootstrap.min.css';
@import '~bootstrap-table/dist/bootstrap-table.min.css';
when trying to call BootstrapTable in nvu using laravel it return
Uncaught TypeError: Cannot call a class as a function
app.js