Questions tagged as 'vue.js'

1
answer

How to delay VueJS v-model?

So that the information is changed when the focus of the field comes out, and not as it is typed.     
asked by 07.07.2016 / 20:50
2
answers

How to disable a bind conditionally with bind href in vue.js?

I have a project where you will have a dynamically populated area with vue.js. But items should be clickable or not depending on the level of each item. I know that in vue, you can use v-if , but everything inside these tags disappear if...
asked by 08.11.2018 / 00:18
1
answer

Dynamic slot value

I would like to know how to make the contents of the slots dynamic, in this case with the name / value of the product. What I have is: // register modal component Vue.component('modal', { template: '#modal' }) // start app new...
asked by 28.09.2017 / 10:56
1
answer

Menu Dropdown (VUEJS / Javascript)

I'm trying to make a dropdown menu in Vue (I do not want to use Bootstrap-vue), so I created a isActiveDrop and set it to true , and every time I click the button to open it it's set to false , so the menu appears and disappea...
asked by 30.06.2017 / 21:22
2
answers

How to filter a list in vue with response ignoring accents and uppercase / lowercase?

I'm doing a filter of a list by name, it works, but if I have a name registered as Hi, the filter does not work when I write higor. computed: { filtered: function () { const search = this.configs.search const users = _.orderB...
asked by 26.08.2018 / 04:57
1
answer

Classes, Mixins or the Two?

Currently in my projects I started using Classes in JS, mainly in cases related to a certain specific element, for example, User, all HTTP requests or methods related to it I usually isolate in two classes to facilitate reuse. In t...
asked by 13.11.2018 / 15:44
1
answer

How to solve html rendering with VUE?

I'm doing a test with the wordpress rest-api with vue 2.x, and one of the returned attributes is as follows: "content": { "rendered": "<P>Bem-vindo ao WordPress. Esse é o seu primeiro post. Edite-o ou exclua-o, e então comece a escr...
asked by 31.03.2017 / 18:34
1
answer

Generate Base64 PDF

I have a laravel API that generates a PDF with laravel snappy. It works perfectly in chrome linux but on windows that has the newer version of chrome does not work, chrome only opens a blank page. I get base 64 like this: window.open('da...
asked by 30.08.2017 / 23:50
1
answer

How to return to the previous state? (Vuex)

I'm using Vuex to manage the states of my app and I'm creating an advance button and a back one, in the case of my progress I use the function below: addUser() { const payload = { name: this.name, email: this.email...
asked by 20.08.2018 / 15:36
1
answer

Multiple component calls in list

I have a basic user list with 4 columns ( NAME | EMAIL | PHONE | OPTIONS ). In the options column, for each table record I have an edit and remove button. I would like each edit button to trigger another component (edit-user-modal-component...
asked by 21.06.2018 / 16:30