Vue-good-table: How to get selected rows in checkboxTable

Created on 3 Nov 2018  路  3Comments  路  Source: xaksis/vue-good-table

i don't know where and how to put 'my-table' reference (this.$refs['my-table'].selectedRows

Most helpful comment

Hey @mustfullDev, add your table reference like so, with all your other options:

<vue-good-table
  ref="my-table"
  :columns="columns"
  :rows="rows">
</vue-good-table>

All 3 comments

Hey @mustfullDev, add your table reference like so, with all your other options:

<vue-good-table
  ref="my-table"
  :columns="columns"
  :rows="rows">
</vue-good-table>

Try this:

// <vue-good-table>
@on-selected-rows-change="selectionChanged"

//Data
rowSelection: []

// Methods
            selectionChanged(params) {
                this.rowSelection = params.selectedRows;
            },

Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sylvaincaillot picture sylvaincaillot  路  3Comments

LiamMcArthur picture LiamMcArthur  路  3Comments

dsinibaldi77 picture dsinibaldi77  路  4Comments

dylanvanes picture dylanvanes  路  3Comments

sylvaincaillot picture sylvaincaillot  路  4Comments