vuetify.js

Vuetify v0.17.6: How to get the autocomplete text inside v-select

梦想与她 提交于 2019-12-05 02:27:24
问题 I'm using VueJS v2.5.13 and Vuetify v0.17.6. I'm building a select with autocomplete functionality and whenever the user types something that's not on the list they'll be able to see a action to create a new option as the code below shows: <template> <v-select prepend-icon="view_list" :items="options" label="Quick searches" v-model="selected" item-text="label" autocomplete :search-value="inputText" clearable dense> <template slot="item" slot-scope="data"> <v-flex xs12> <v-layout> <v-layout

Vuetify component v-form is not responding on the declared @submit event handler

前提是你 提交于 2019-12-05 01:26:21
I am using Vuetify and VueJS (the latest versions). Here is the small template of Login.vue : <template> <v-layout align-center justify-center> <v-flex xs12 sm8 md4> <v-card class="elevation-12"> <v-toolbar dark color="success"> <v-toolbar-title>Login form</v-toolbar-title> <v-spacer></v-spacer> </v-toolbar> <v-card-text> <v-form @submit.prevent="checkLogin"> <v-text-field prepend-icon="person" id="userLogin" v-model="userLogin" placeholder="my@login.com"></v-text-field> <v-text-field prepend-icon="lock" id="userPassword" v-model="userPassword" placeholder="password" type="password"></v-text

Vue/Vuetify - Unknown custom element: <v-app> - did you register the component correctly?

淺唱寂寞╮ 提交于 2019-12-05 01:09:27
I am new to Vue and Vuetify. I just created quick app to check both of them. But I am a running into issues in beginning. The vue fails to identify vuetify components despite following all the steps outlined in document. The error is like below - vue.runtime.esm.js?ff9b:587 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> at src\App.vue You can access the entire code at sandbox https://codesandbox.io/s/40rqnl8kw You're likely experiencing a problem with the order of your operations.

How do I enable tooltips on a disabled text-field in vuetify?

一曲冷凌霜 提交于 2019-12-04 21:41:24
The code shows the tooltip icon but does not show anything when I hover on it.How do I enable it on hover like in the case of number below. https://vuetifyjs.com/en/components/tooltips <v-text-field label="Name" id="name" disabled> <v-tooltip slot="append" :value="true" bottom> <v-icon slot="activator" color="primary" dark>live_help</v-icon> <span>Name of the user</span> </v-tooltip> </v-text-field> <v-text-field label="number" id="number"> <v-tooltip slot="append" bottom> <v-icon slot="activator" color="primary" dark>live_help</v-icon> <span> Number of years</span> </v-tooltip> </v-text-field

How to control these components?

人盡茶涼 提交于 2019-12-04 18:51:25
I have 5 v-swtich components, called A, B, C, D and E. Here is what I want to achieve: If I switch on A , then D and E must automatically switch on, and the user must not be able to switch D and E off unless if he switches off A. If A is not switched on, the the user can switch on D or E . If the user switches on any combinations where D and E appear (for example: (C, D , E ), (C, D , E , B), (B, D , E ) ) then A must be automatically switched on, and the user must not switch off D and E until he switches off A. Here is some code to start with: <div id="app"> <v-app id="inspire"> <v-container

How to use stylus block level import with Vuetify styles

隐身守侯 提交于 2019-12-04 17:08:52
Using a stylus block level import: # vuetify-style.styl .myapp @import '~vuetify/src/stylus/main' This is to ensure that the vuetify css doesn't interfere with elements from other parts of the page which aren't using vuetify. But unfortunately it doesn't work, I can't compile it. ERROR Failed to compile with 1 errors 2:13:28 pm error in ./src/stylus/main.styl Module build failed (from ./node_modules/stylus-loader/index.js): Error: node_modules/vuetify/src/stylus/settings/_el evations.styl:85:33 81| 0px 9px 46px 8px $shadow-key-ambient-opacity 82| 83| // MIXINS 84| elevation($z, important =

How to implement a simple form with validation in a Vue app (with Vuetify.js)?

对着背影说爱祢 提交于 2019-12-04 16:09:21
问题 I'm trying to add a contact form with simple validation on a website built with Vue.js using a Vuetify.js example. I'm a newbie, so I'm not sure how it should be implemented in a Vue component. I want to achieve a simple client side form validation and make it work with a https://getform.org/ form. UPDATED: Code | Contact.vue (taken from Vuetify.js form example) <v-form v-model="valid"> <v-text-field label="Name" v-model="name" :rules="nameRules" :counter="10" required name="Name" ></v-text

Customizing item-text in v-select

*爱你&永不变心* 提交于 2019-12-04 07:51:43
问题 Please tell me if we can customize item-text for v-select ? I want customize each item in v-select , something like this : :item-text="item.name - item.description" 回答1: Yes you can, using scoped slot as described in the doc and provide a template . For v-select you have two scoped slot : selection : to describe how v-select should render items when selected item : to describe how v-select should render items when opened It looks like this : <v-select> // Don't forget your props <template

File upload in vuetify [closed]

夙愿已清 提交于 2019-12-04 07:51:39
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 months ago . I'm using vuetify components for front-end in Vuejs. I want to create a user registeration form with file upload. I'm able to create a form using v-text-field in vuetify but how to upload the file. Which component to use or any other alternative way. 回答1: Vue JS do not have file

How to validate Vuetify text field asynchronously?

烈酒焚心 提交于 2019-12-04 07:42:20
Text fields in Vuetify have rules props, which take an array of functions returning true or an error string. How to make them async, so that the validation could be made server-side using XHR? Something like: <v-text-field :rules="[v => { axios.get('/check?value=' + val).then(() => { return true }) }]"> One solution is to set the error-messages prop: <v-text-field v-model="input" :error-messages="errors"> and use the watch method: new Vue({ data () { return { input: '', errors: [] } }, watch: { input (val) { axios.get('/check?value=' + val).then(valid => { this.errors = valid ? [] : ['async