Skip to content
Advertisement

Tag: vue.js

How to display and hide the underline based on user clicks?

i have one component which is responsible for register [My-page]1,when user clicks on Login heading the signup underline should hide(means unvisible),and if the user clicks on Signup heading then the login underline should unvisible and displays the signup underline ,How to acheive this thing please help me.. Register.vue Answer You could just toggle a class.

Replace space with new line in vue js

I am trying to replace the spaces between the name to new line in vuejs but I am not able to achieve it. Please help me find where I going wrong. Right now the names are showing as but I want it to display as Below is the code. Answer You could do this entirely in CSS with word-spacing set

How to get options when user clicks on the More icon in vue.js?

i have an icons.vue component in that it will contain several font-awesome icons,when i click on more icon(3 dots[last icon in my component]),it should display some options like This image ,i am showing my icons imageplease help me How to acheive this thing icons.vue Answer I haven’t done much with Font Awesome, so I built an example of a possible

name of object within payload javascript

I have this payload. I’m trying to use Vue to set the values in the state using I realise one of my payload.val need to be the name of the value and not the name itself. How can I reference this correctly? My state looks like this: Edit: Spelling Answer As per the Vue documentation (Vue.set Documentation Link), first parameter

Currency Converter function in Vue3

I’m trying to implement a convert() function in a Vue3 project. I have a functions.js file to store some “global” basic functions I’m calling the function inside a component like this But it doesn’t work properly, I only get a pending Promise result… Can anybody tell me what I’m doing wrong? I’m learning Vue and JS…. Answer There is two

using V-for loop with filtered data set

I am filling values in a table using the code below in my ‘castData’ I have 15 items but I only want to return the ones that include “Sinto” Is there a way of applying this filter. I’ve tried appending .includes(“Sinto”) after the first castData with no luck. Answer One way would be to manipulate your castData before you pass

Advertisement