[Vuejs]-Vuetifyjs v-simple-table โ€“ change the loading status of the button on click

0๐Ÿ‘

โœ…

I would take that button and wrap it, e.g:

{
  name: "wrapped-v-btn",
  data(){
    return {
      loading: false
    }
  }
}
<template>
  <v-btn  
    :loading="loading" 
    @click="loading=!loading"
    v-bind="$attrs"
  >
    <v-img src="images/plus-i.svg"></v-img>
  </v-btn>
</template>


...
<td>
  <wrapped-v-btn text class="table-btn" />
</td>

Leave a comment