Any row on the second table should move to the first one on click of the v-switch
and also any row on the first table should move to the second table if its v-switch is clicked. I am stuck on which approach to use.
<template>
<v-simple-table>
<template v-slot:default>
<thead>
<tr class="ma-0 pa-0">
<th>Available Items</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr class="ma-0 pa-0">
<td>Item-005</td>
<td>
<v-switch v-model="switch1" inset label="Available"></v-switch>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
<v-simple-table>
<template v-slot:default>
<thead>
<tr class="ma-0 pa-0">
<th>UnAvailable Items</th>
<th>Action</th>
</tr>
</thead>
<p>UnAvailable Items</p>
<tbody>
<tr class="ma-0 pa-0">
<td>Item-125</td>
<td>
<v-switch v-model="switch2" inset label="Unavailable"></v-switch>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
</template>
<script>
export default {
data(){
return {
switch1: false,
switch2: false,
}
}
};
</script>