小编Afo*_*nso的帖子

How do I get the selected rows from a v-data-table? (Vuetify)

I am using a v-data-table, with the option "show-select", which shows checkboxes behind every row, but I have no idea how to actually know which rows are checked and get their values...

This is the code

<v-data-table
   :headers="TopicHeaders"
   :items="allTopics"
   :search="searchTopics"
   show-select
   class="elevation-1"
   item-key="name"
></v-data-table>
Run Code Online (Sandbox Code Playgroud)

Thank you

datatable vue.js vuetify.js

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

datatable ×1

vue.js ×1

vuetify.js ×1