vue-table icon indicating copy to clipboard operation
vue-table copied to clipboard

Pass vuetable data to Vuex?

Open jackbbhua opened this issue 8 years ago • 1 comments

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 avatar Aug 21 '16 17:08 jackbbhua

@jackbbhua That makes the two of us! Really sorry, can't really help on that as I'm not using Vuex myself.

ratiw avatar Aug 21 '16 17:08 ratiw