I'm trying to install this library vue-easytable
It is very interesting: it has pagination, vertical and horizontal adaptation and many other things. She is very quick to render. I want to install as a template in Laravel. I installed the library npm run install
put it in the app.js file
import 'vue-easytable/libs/themes-base/index.css'
import {VTable,VPagination} from 'vue-easytable'
Vue.component('example2-component', require('./components/Example2Component.vue'));
I executed npm run dev
but I do not know how to do more.
have the index.js that I tried to put in the webpack like this:
mix.js('resources/assets/js/app.js', 'public/js', 'C:/sgeapi/node_modules/vue-easytable/umd/js/index.js')
What should I do to display the table on a page. I put the call to the template in the Welcome view:
Appears on the console:
[Vue Warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option (found in) [Vue warn]: Property or method "titleRows" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: link . found in --- > at resources \ assets \ js \ components \ Example2Component.vue