Closed AnguruMona closed 8 years ago
@AnguruMona Look into the example first and state your problem clearly. It's just another NPM package, If you're not familiar with NPM, try the javascript version as in the example first.
i used command npm install vuetable
this is my main.js
import Router from 'vue-router' import Resource from 'vue-resource' import VueFilter from 'vue-filter' import vuetable from 'vuetable' import VuetablePagination from 'VuetablePagination' import VuetablePaginationDropdown from 'VuetablePaginationDropdown' import App from './App.vue' import tabledata from './components/table.vue' var Vue = require('vue');
Vue.use(vuetable) Vue.use(Router) Vue.use(Resource) Vue.use(VueFilter) Vue.use(VuetablePaginationDropdown) Vue.use(VuetablePagination)
// routing var router = new Router() router.map({ '/commitDetails':{
component:tabledata }
}) router.start(App, '#app')
and this is my template
data is not displaying and getting warning message : 1.The "data" option should be a function that returns a per-instance value in component definitions
can u tell where i did mistake ?
@AnguruMona 'vuetableis not a plugin, you don't have to
Vue.use(...)` it.
When using npm, you should import from src/components
directory, like so.
import vuetable from 'vuetable/src/components/Vuetable.vue'
import VuetablePagination from 'vuetable/src/components/VuetablePagination.vue'
import VuetablePaginationDropdown from 'vuetable/src/components/VuetablePaginationDropdown.vue'
First of Thank U so Much. Can u have look this file. Pls tell me if i did any mistake Vue.zip
warning message:
1.vue.common.js?e881:1019 [Vue warn]: The "el" option should be a function that returns a per-instance value in component definitions.
2.vue.common.js?e881:1019 [Vue warn]: The "data" option should be a function that returns a per-instance value in component definitions.
3.vue.common.js?e881:1019 [Vue warn]: Invalid prop: type check failed for prop "fields". Expected Array, got Undefined. (found in component:
@AnguruMona Sorry, you should put it in github. I would look into the source code, when I have time.
But it looks like you're using Vue 2.0, aren't you? If so, this version is not compatible with Vue 2.0.
I am using Vue 2.4.0 .is it compatible or not
@AnguruMona Nope, it's only working with Vue 1.x.
vuetable 2 will be released after the stable version of Vue 2.0 is released.
Thank u so much
I gone through documentation and tried to use ratiw/vue-table , everytime failed from last three days.can u guide me how i will use vue-table on npm.