Answer the question
In order to leave comments, you need to log in
How to highlight an element with dynamic content?
Hello, I ran into such a problem: how to select in Vue.js, in which it dynamically changes.
Those. we have several containers that are output via v-for. The content of the array changes (any messages come there). Containers are always the same size in width and height (overflow: hidden). It is necessary to assign a css class to those containers whose content does not fit in them, so that the user understands that they can be clicked on and they will expand.
Example: https://jsfiddle.net/VaaL2004/a1nh82d0/
Answer the question
In order to leave comments, you need to log in
:class = { 'css_class': string.count}
Here I wrote how to make the bottom border transparent without css.
https://m.habr.com/post/116646/
It describes in more detail how to make a class, under conditions.
https://youtu.be/EOSJ_6gXTnM
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question