V
V
VaaL20042018-05-14 07:05:20
JavaScript
VaaL2004, 2018-05-14 07:05:20

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

1 answer(s)
K
Konstantin Malyarov, 2018-05-14
@VaaL2004

: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 question

Ask a Question

731 491 924 answers to any question