Incorporating vue-tables-2 into my project, I designed a prototype featuring checkboxes in the first column with the following objectives:
- Enable selection of multiple rows
- Add selected rows to a new array
- Generate a PDF from this new array of table data
I successfully implemented the checkboxes in the column, but how can I transfer the selected rows into a new array so that I can create a PDF from it? Although I have the selectRow method, I am facing challenges in collecting all selected rows and adding them to 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>