Display Vuetify tooltip on disabled button

Not sure if this is the absolute best way but I was able to get a tooltip on a disabled button by wrapping it in a div tag: Codepen <v-tooltip v-model=”show” top> <template v-slot:activator=”{ on }”> <div v-on=”on”> <v-btn disabled icon> <v-icon color=”grey lighten-1″>shopping_cart</v-icon> </v-btn> </div> </template> <span>Programmatic tooltip</span> </v-tooltip>

How can I add a click event to the v-data-table?

I found a way around it using @click:row <v-data-table :headers=”headers” :items=”desserts” :items-per-page=”5″ class=”elevation-1″ @click:row=”handleClick”> </v-data-table> The handleClick function returns a value of the clicked item so I call the method I want to act upon the value within the handleClick method. I also manually highlighted the clicked row since I didn’t find a Vuetify way … Read more

vuetify center items into v-flex

wrap button inside <div class=”text-xs-center”> <div class=”text-xs-center”> <v-btn primary> Signup </v-btn> </div> Dev uses it in his examples. For centering buttons in v-card-actions we can add class=”justify-center” (note in v2 class is text-center (so without xs): <v-card-actions class=”justify-center”> <v-btn> Signup </v-btn> </v-card-actions> Codepen For more examples with regards to centering see here

Typescript in vue – Property ‘validate’ does not exist on type ‘Vue | Element | Vue[] | Element[]’.

Solutions: Simple: (this.$refs.form as Vue & { validate: () => boolean }).validate() Alternative (use this if you reference this.$refs.form multiple times in your component): computed: { form(): Vue & { validate: () => boolean } { return this.$refs.form as Vue & { validate: () => boolean } } } // Use it like so: this.form.validate() … Read more

What is difference between v-app-bar and v-toolbar in vuetify?

Per the Vuetify Migration Guide — ‘Migrating from v1.5.x to v2.0.x’: v-toolbar: All existing scrolling techniques and app functionality has been deprecated and moved to v-app-bar. Thus, starting in Vuetify 2.0, v-app-bar is what you probably want to use at the top of most typical apps since you can do scrolling-related effects and designate v-app-bar … Read more