Using vue-tables-2 - I made a prototype with the first column checkboxes and my goal is to:
- Select multiple rows
- Push this selection into a new array
- Create a PDF of this new array of tableData
I was able to create the column of checkboxes, but how can I take the selected rows and push them into a new array in which I can generate a pdf from? I have the method selectRow but am struggling on how to gather all the selected rows and push them into a new array.
<v-server-table url="/removals" :data="tableData" :columns="columns" :options="options">
<input slot="selected" slot-scope="props" type="checkbox" :checked="props.row.selected" @click="selectRow">
<button slot="afterFilter" type="submit" @click="createPdf">Create PDF</button>
</v-server-table>