App Connect Data Formatter Support Product Page

Answered

how to combine classes?

7 years ago Greta Garberini posted:
Hi,

Usually one would write

<div class="badge badge-danger">Something</div>


In class-toggle, this does not work, though:

<div dmx-class:badge badge-danger="active == &quot;NO&quot;" </div>


Can you please enlighten us on how to write correctly dynamic attribute class-toggle?

Replies

Replied 7 years ago
7 years ago Teodor Kuduschiev replied:
Hi Greta,
Just add multiple class toggle attributes, for the multiple classes:


Replied 7 years ago
7 years ago Greta Garberini replied:
Cool,
Thanks for the quick answer

Reply to this topic