vuetify.js

Testing vuetify v-select with laravel dusk

走远了吗. 提交于 2019-12-04 05:31:48
问题 Does anyone know how to test vuetify v-select with laravel dusk? I've tried $browser->select('size', 'Large'); without success this is one of the v-selects that i want to test <v-flex class="form__item"> <v-select id="estatus" dusk="estatus" v-model="form.id_estatus" label="Estatus" :items="estatus" item-text="nombre" item-value="id" v-validate="{ required:true }" data-vv-name="estatus" data-vv-as="estatus" :error-messages="(errors.collect('estatus'))" required ></v-select> </v-flex> And this

Change default font in vuetify is not working (vue-cli 3) [Vuetify 1.X]

帅比萌擦擦* 提交于 2019-12-04 04:04:49
I'm aware of the question change-default-font-in-vuetify in SO, but it doesn't address my problem as it was posted before vue-cli-3 came out, so the ideas there don't apply here as that, the official docs from Vuetify on how to change themes and other options don't have any valid step for when the project is created with vue-cli 3. So far my attempts go like this: - vue create fooproject (using default config, but even if I don't use the default but cherrypick what I want in the project and select the css-preprocessor as stylus manually it won't work) - vue add vuetify - it creates a plugin

clearing select field automatically after selecting item

爷,独闯天下 提交于 2019-12-04 03:26:47
问题 I can't find a way to clear the select field in method "afterselection" which is invoked after selecting an item: template: <v-select :items="adrlist" @input="afterselection" ></v-select> data in select: const addressList = [{ "text":"Street 523, 2533", "value":[1723455.7054408004,5923451.382843224]}, {"text":"Lala 3, 3455", "value":[1723455.7054408004,5923451.382843224], }] vue-code: new Vue({ el: '#app', data () { return { adrlist: addressList, } }, methods:{ afterselection(item){ console

Scrollable Data Tables using Vuetify

泄露秘密 提交于 2019-12-04 03:02:41
I want to create a vue page that has two data-tables that fill half the screen (vertically). Each data table should have a scroll bar if required. I have tried the markup below, but this does not size the data-tables to the screen size. Here is a codepen example <div id="app"> <v-app id="inspire"> <v-container fluid grid-list-md fill-height> <v-layout column> <v-flex md6> <v-data-table :headers="headers" :items="desserts" hide-actions class="elevation-1" > <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> <td class="text-xs-right">{{ props.item.calories }}</td> <td

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

混江龙づ霸主 提交于 2019-12-03 20:12:33
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 justify-start fill-height align-content-center> <span>{{data.item.label}}</span> </v-layout> <v-layout

Vuetify: How to preselect active tab?

隐身守侯 提交于 2019-12-03 13:52:31
I want to use Vuetify (v1.0.18) to render some static navigation using v-tabs . The routing is done on the server side, so I need a way to set the active tab by properties. It's a very basic task, but I don't get it to work. Example: <v-tabs> <v-tab href="/path1">Tab 1</v-tab> <v-tab href="/path2">Tab 2</v-tab> </v-tabs> This preselects the first tab - fine. Now the question ist: How to preselect the second tab? The following does not work: <v-tabs value="tab2"> <v-tab id="tab1" href="/path1">Tab 1</v-tab> <v-tab id="tab2" href="/path2">Tab 2</v-tab> </v-tabs> To preselect an active tab: <v

How to specify different margin for different screen sizes using breakpoint in Vuetify

六月ゝ 毕业季﹏ 提交于 2019-12-03 08:37:39
问题 Question: I have a loop displaying specified amount of cards. The problem is with ma-5 attribute in <v-flex> . On xs screen size this margin is too big. Ho do I specify a different margin for different screen sizes? Code: <v-container> <v-layout row wrap> <v-flex xs12 sm6 md4 ma-5 v-for="card in filteredCards" :key="card.id"> <v-card flat class="elevation-20 test"> <v-card-media :src="card.image" height="200px"> </v-card-media> <v-card-title primary-title class="pa-4"> <div> <h3 class=

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

不羁岁月 提交于 2019-12-03 05:49:36
问题 As of date of posting, I cannot find any documentation to use the "custom filter" prop in data tables. I just want to create a custom filter to filter my data table by headers. I have a dropdown, and when user click on one of the options for the dropdown, it will filter the list for one specific header. Example: Dropdown options: Food type: fruit, meat, vegetable Bakchoi (vegetable) Pork (meat) Chicken Thigh (meat) watermelon (fruit) If I select dropdown as meat, it should only show me pork

How to specify different margin for different screen sizes using breakpoint in Vuetify

天大地大妈咪最大 提交于 2019-12-02 22:26:16
Question: I have a loop displaying specified amount of cards. The problem is with ma-5 attribute in <v-flex> . On xs screen size this margin is too big. Ho do I specify a different margin for different screen sizes? Code: <v-container> <v-layout row wrap> <v-flex xs12 sm6 md4 ma-5 v-for="card in filteredCards" :key="card.id"> <v-card flat class="elevation-20 test"> <v-card-media :src="card.image" height="200px"> </v-card-media> <v-card-title primary-title class="pa-4"> <div> <h3 class="headline mb-0">{{card.title}}</h3> <div style="min-height:50px;">{{card.description}}</div> </div> </v-card

Vuejs Vuetify how to access properties of object in v-select

大憨熊 提交于 2019-12-02 19:44:56
My use case. I got an array of objects from a back-end api. I want to render those objects in a v-select This is my code. <v-select :items="categories" name="category" label="Select a category" v-model="category" v-validate="'required'"> </v-select> But it gives me the output. But I wants objects name property to be display in the v-select We would do this in vanilla Vue.js <li v-for="cat in categories" :key="cat.name">{{cat.name}}</li> But here with vuetify we can't do this. :items="categories.name" Vuetify documentation Can be an array of objects or array of strings. When using objects, will