vue-table
vue-table copied to clipboard
Pass vuetable data to Vuex?
this is my code:
export default {
props: ['Appconfig'],
vuex: {
actions: {
increment: actions.create
},
getters: {
findById: findById
}
},
// before is vuex container
component: {
'vuetable': vuetable,
'bootstrap': bootstrap
},
data () {
return {
searchFor: '',
fields: tableColumns,
sortOrder: {
field: 'name',
direction: 'asc'
},
selectedRow: [],
perPage: 10,
paginationComponent: 'vuetable-pagination',
paginationInfoTemplate: 'แสดง {from} ถึง {to} จากทั้งหมด {total} รายการ',
itemActions: [
i have no idea to pass data like
searchFor: '',
fields: tableColumns,
sortOrder: {
field: 'name',
direction: 'asc'
},
selectedRow: [],
perPage: 10,
to Vuex.Please help. thank you.
@jackbbhua That makes the two of us! Really sorry, can't really help on that as I'm not using Vuex myself.