Learn how to use Bootstrap Table Vue Component in your project using webpack.
Importing JavaScript
Import Bootstrap Table’s JavaScript by adding this line to your app’s entry point (usually index.js or app.js):
Of course, you can also import themes, locales or extensions you need:
By default, Bootstrap Table is dependent on jQuery, Bootstrap and Popper, these are defined as peerDependencies, this means that you will have to make sure to add both of them to your package.json using npm install --save jquery bootstrap popper.js.
Importing CSS
Import Bootstrap Table’s CSS by adding this line to your app’s entry point:
Of course, you can also import themes or extensions you need:
Usage
Starter template
There is an vue-starter example in bootstrap-table-example project.