All Questions
5
questions
-1
votes
2
answers
614
views
how to add Vue props value to background-image
I'm new in VueJS and I get confused to change background image from Vue props value.
I've created simple table from 'vue3-easy-data-table'.
BaseTable.vue:
<template>
<EasyDataTable>
...
...
5
votes
1
answer
775
views
How to create a dynamic background image for components in Vue using props?
Objective
I want to pass the path of an image as a prop to a component. I want the component to use the prop to dynamically generate the background image.
All my images in an assets folder in the Vue ...
0
votes
0
answers
179
views
Add/remove class on only one item in for loop (Vue)
I would like to add and remove a class from only one item at a time in a for loop. I have a bunch of dynamically loaded items, and once one of them is clicked, that item should have the class. When ...
0
votes
2
answers
2k
views
Can I use props in computed property to bind a css class?
Is it possible to use the props inside a computed property, in some other way?
When I do this, it add the class 'foo' (name of the props), instead the wanted 'fa-foo' (or other value, if props were ...
1
vote
1
answer
2k
views
How to change component css with props with Nuxt Js Vue js
I'm new to Nuxt and Vue, thanks for being indulgent ;).
I have a "Subtitle" component that I use in another "Main" component (names are for the example).
How can I change the css ...