vuetify.js

Vuetify 2.2 DataTable multiple filters

怎甘沉沦 提交于 2020-08-10 18:57:08
问题 I'm new in vue.js, please help. I need filters in my table. Each column must have multiple select filter by values. When we click on column header - dropdown multi select opens, and we can select filtered values. For example like this Vuetify Data Table Inline Filter but this example doesn't work with vuetify 2. My html: <template> <v-card class="elevation-3"> <v-card-title> {{ other_title }} <v-btn style="background-color: white; box-shadow: none;" @click="csvExport(other_title,

Compile Vuetify tags/template received as prop in runtime

独自空忆成欢 提交于 2020-08-09 19:34:54
问题 I want to send a 'template' prop to a component then render it. If I send a plain HTML it works, but if I send a Vuetify tag like <v-btn>test</v-btn> the template does not get compiled. I know i shouldn't pass a template via props, but this is a specific case: The parent component works as a "template builder" and the child components works as the "result viewer", so I have to pass the created template to the child so that it can compile and show it. Here's what I've been trying: main.js

Firestore Group by field

限于喜欢 提交于 2020-07-30 12:51:10
问题 Below is my firestore collection structure My vue method to get data fetchResults(){ db.collection('data').onSnapshot((querySnapShot)=>{ let results = []; querySnapShot.forEach(doc=>{ results.push(doc.data()) }) this.record=results; }) } What I want is to query in the document like group by ID and order by sec_id desc . How do I suppose to query like that? So that I will get document grouped by ID field. 回答1: As a NoSQL type database, Cloud Firestore doesn't offer any aggregation queries such

Vuetify Datatable - Enable content editing on all columns

无人久伴 提交于 2020-07-30 05:49:51
问题 I have a datatable with hundreds of columns (and rows) and I want all of them to be edittable. The Vuetify example on https://vuetifyjs.com/en/components/data-tables (section:content editing ) shows the possibilty of making cells editable. However, doing this for hundreds of column manually is out of the question. Is there a way to make all cells editable by default? 回答1: AFAIK, there's no way to make all header fields editable by default, but you could customize the body template, and

How can I change the placeholder/label color inside a v-text-field?

我们两清 提交于 2020-07-22 10:05:25
问题 I'm trying to change the color of both the label and the text being inputted by the user on a v-text-field . I've tried applying the color prop to it, but it only changes de bottom divider's color. What should I do to get it as I want? This is my actual code: <v-text-field label="Search here!" color="blue lighten-1"> <template slot="append"> <v-btn class="blue--text text--lighten-1" flat> <v-icon>search</v-icon> </v-btn> </template> </v-text-field> NOTE: I've removed some props as the v-model

Using new Date() with v-date-picker doesn't work

早过忘川 提交于 2020-07-20 07:26:27
问题 I'm trying to follow this video using Vue and Vuetify to apply the current date with v-model to the date picker component v-date-picker using the data value date that's initially being set with new Date() . This is a simplified structure of my project: JS new Vue({ el:"#app", data: { date: new Date(), time: new Date() } }) Template <div id="app"> <v-date-picker v-model="date"></v-date-picker> {{ date }} <v-time-picker v-model="time"></v-time-picker> </div> And here's a CodePen . Unfortunately

Using new Date() with v-date-picker doesn't work

最后都变了- 提交于 2020-07-20 07:26:08
问题 I'm trying to follow this video using Vue and Vuetify to apply the current date with v-model to the date picker component v-date-picker using the data value date that's initially being set with new Date() . This is a simplified structure of my project: JS new Vue({ el:"#app", data: { date: new Date(), time: new Date() } }) Template <div id="app"> <v-date-picker v-model="date"></v-date-picker> {{ date }} <v-time-picker v-model="time"></v-time-picker> </div> And here's a CodePen . Unfortunately

How to disable the hover effect of Vuetify data tables?

杀马特。学长 韩版系。学妹 提交于 2020-07-10 06:33:33
问题 The data tables from Vuetify have a hover effect by default. I found this CSS class applied when I check for the table row, .theme--light.v-data-table tbody tr:hover:not(.v-data-table__expanded__content) { background: #eee; } So it seems that this adds the background color to the table row. But when I add this scoped CSS to the Vuetify component, <template> <v-data-table :headers="headers" :items="items" :disable-sort="true" hide-default-footer :item-key="itemKey" > <template v-for="slot in

Vuetify default carousel CSS selectors, for transition duration reduction

|▌冷眼眸甩不掉的悲伤 提交于 2020-07-10 01:17:45
问题 I need a transition that does not produce the dreaded image blinking for a v-carousel-item. Ideally it's a smooth and quick fade that would work for both transition and reverse-transition. I have tried all the transitions built in to Vuetify as well as a couple of custom ones but nothing works. My issue can be seen CodePen of the issue and in a reported at GitHub Vuetify Issue. <div id="app"> <v-app> <v-carousel> <v-carousel-item v-for="(item,i) in items" :key="i" :src="item" reverse

Vuetify default carousel CSS selectors, for transition duration reduction

跟風遠走 提交于 2020-07-10 01:16:14
问题 I need a transition that does not produce the dreaded image blinking for a v-carousel-item. Ideally it's a smooth and quick fade that would work for both transition and reverse-transition. I have tried all the transitions built in to Vuetify as well as a couple of custom ones but nothing works. My issue can be seen CodePen of the issue and in a reported at GitHub Vuetify Issue. <div id="app"> <v-app> <v-carousel> <v-carousel-item v-for="(item,i) in items" :key="i" :src="item" reverse