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

Meaning of v-slot:activator=”{ on }”

You’re likely referring to this example: <v-toolbar color=”grey darken-1″ dark> <v-menu :nudge-width=”100″> <template v-slot:activator=”{ on }”> <v-toolbar-title v-on=”on”> <span>All</span> <v-icon dark>arrow_drop_down</v-icon> </v-toolbar-title> </template> … </v-menu> </v-toolbar> The following line declares a scoped slot named activator, and it is provided a scope object (from VMenu), which contains a property named on: <template v-slot:activator=”{ on }”> This … 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

How to align the contents to the center of the v-card component in Vuetify?

Update : Works in both version of Vuetify 1.5 and 2: To centralize v-card-text content just apply the class=text-center v-card-title and v-card-actions are flex components so by adding class=”justify-center” to both you can centralize the whole thing: <v-card-title primary-title class=”justify-center”> <div> <h3 class=”headline pink–text text–accent-2″>Superdry</h3> <div>Rookie Aviator Patched BomberproductItem.description</div> </div> </v-card-title> <v-card-actions class=”justify-center”> <v-btn flat … Read more

Vuetify – How to set background color

With Vuetify 2.0, I would like to propose my solution: Vuetifty Theme Referance Follow the documentation as usual with setting up custom theming, except add another variable (background in my case). import Vue from ‘vue’ import Vuetify from ‘vuetify/lib’ import colors from ‘vuetify/lib/util/colors’ const vuetify = new Vuetify({ theme: { themes: { light: { primary: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)