Questions tagged as 'vue.js'

0
answers

Tinymce with Vuejs

I'm trying to use Tinymce with vue, but so far unsuccessful, I've already used various and none of them worked. <template> <div> <Button type="primary" @click="newPost = true">Adicionar Novo</But...
asked by 02.10.2017 / 21:23
1
answer

Vuejs with VueTable2

I'm trying to use VueTable-2 by sending the information via% pro_de%. I looked at a number of websites, tested it, and it did not work, I even found this example in the format I need, but it also does not work. The most basic code would be t...
asked by 08.06.2017 / 21:38
1
answer

How do I view files before downloading?

I want a PDF (generated on my server) to be sent to my client and opened in a new tab before being downloaded. I've already been able to get it downloaded directly from the server to the client, but now I need it to be displayed instead of being...
asked by 16.08.2017 / 16:26
1
answer

Rename PDf file before opening for preview

I'm getting a PDF file in response to a POST request, and on the server side I've set up the file name and everything else. But now I'm viewing it in the browser instead of downloading it and it no longer obeys the name placed on the server and...
asked by 16.08.2017 / 19:14
2
answers

invert push order

I'm using push in a request to put new element in a list, but I noticed that push puts the last result down. I want to reverse this. I'm using v-for to list, but I believe the "fix" will be in the same push ... follow the code: dados.ret...
asked by 12.09.2018 / 22:52
2
answers

Calculate value with Virgula with Vue.JS

Good afternoon, Vue.JS can calculate directly in the mustache {{}} but when a value comes with comma, NaN appears the result that is, if the variable is value = 2 and I make {{value - 1}} it displays 1 for good but if I make value = 2,5 and then...
asked by 08.11.2018 / 19:48
2
answers

Sort list with vue

Hello, ladies and gentlemen, I am a beginner with vue and I am creating a list, but I am having difficulty understanding how I will sort the list by clicking on the following title column: new Vue({ el: "#lista", data:{ users :[...
asked by 12.06.2017 / 21:40
1
answer

Transform array vue into Json

I am trying to pass in an textarea an array of Vue.js, and would like to turn it into json . What would be the best way to do this? new Vue({ el:"#app", data : { nome_da_variavel_array: '[{variavel : 'valor'}...
asked by 06.09.2018 / 20:59
3
answers

leave first selected item selected

Good afternoon to everyone, how are you? Next, I'm listing some courses with v-for and it's a good one, however, option needs to be selected and I'd like the first select item already selected to indicate to the client better ... it works, but it...
asked by 13.09.2018 / 19:55
2
answers

Avoid submitting form by pressing the Enter key

I have input in VueJS that is within form and when I press enter I do not want form to be submitted. Together with VueJS I'm using Quasar and I was able to assign the function call only on the enter key: &...
asked by 18.10.2017 / 15:05