How do I use “custom filter” prop in data tables in vuetify? or How do I create a custom filter to filter by headers?

Looking at the code on Github1, it looks like the customFilter prop is used to overwrite the default method used to determine how the filter prop is applied to the items in the table. The default customFilter method applies the filter function to each property name of each item object and filters out any items … Read more

How to use “vuetify” transitions on my components?

This wraps some card text in a transition. When I trigger the v-show=”show” model to true, the text slides in. <v-slide-y-transition> <v-card-text v-show=”show”> Example text </v-card-text> </v-slide-y-transition> You could have a button trigger it or even add an onCreate() method that triggers the show to true after the component loads.

Vue/Vuetify – Unknown custom element: – did you register the component correctly?

You’re likely experiencing a problem with the order of your operations. You’re defining your own App component that uses the v-app component before you’ve even told Vue to make use of it, so Vue assumes you’re using your own custom v-app component. Place Vue.use(Vuetify) before starting any Vue instances via new Vue() that require Vuetify … Read more

Reset Vuetify form validation

Example from docs uses: this.$refs.form.reset() Note that while reset() clears validation, it clears input as well. You can follow this issue to see further updates on this. So you can perhaps watch dialog value and reset the form: watch: { dialog() { this.$refs.form.reset() } }

Close dialog when ESC key is pressed

Add @keydown.esc=”dialog = false” to v-dialog component <v-dialog v-model=”dialog” @keydown.esc=”dialog = false”></v-dialog> data: () => ({ dialog: false }), Working example: https://codepen.io/anon/pen/BJOOOQ Additionally, if using dialog as custom component then possibly we need to emit input event: <template> <v-dialog :value=”value” @keydown.esc=”$emit(‘input’)”> …

What does v-on=”…” syntax mean in VueJS?

TLDR: basic usage <!– object syntax (2.4.0+) –> <button v-on=”{ mousedown: doThis, mouseup: doThat }”></button>] So basically @click=”…” equals v-on:click=”…” equals v-on=”{click:…}” TLDR: vuetify implementation: genActivator () { const node = getSlot(this, ‘activator’, Object.assign(this.getValueProxy(), { on: this.genActivatorListeners(), attrs: this.genActivatorAttributes(), })) || [] this.activatorNode = node return node } Some insight: It is useful if you … Read more