Say I have an element in my template like the following:
<div class="c1 c2 c3"></div>
It has several classes applied to it, but at design time I won't know exactly what classes they are.
If the model used for data binding/linking has a property called x
that is true, then I would like to add an additional class to the <div>
, let's call it c4
, otherwise I would want to remove c4
and keep the existing classes intact.
How can this be done using jsViews?