Q:

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>

Thank you

A:

The selected rows are bound to the value (v-model) of the datatable. This should be as simple as...
<v-data-table
   v-model="selected"
   :headers="TopicHeaders"
   :items="allTopics"
   :search="searchTopics"
   show-select
   class="elevation-1"
   item-key="name"
></v-data-table>

Now the checked rows are stored in the selected array. See my answer here for examples on how to manipulate the selected rows when using customized slots.

