In my state
model I have:
...
"elementX": {valueState:"Success", valueStateText:"Great!" },
...
and in the XLMView I use a Text
element:
<Text text="{state>/elementX/valueStateText}" class="Success"/>
In my style.css file I have:
.Success{
color: #008000;
}
All work fine and I see the green text!
But if bind class
to valueState
propery
<Text text="{state>/elementX/valueStateText}" class="{state>/elementX/valueState}"/>
I see the text in black (not in green)... Why?
Using another component as Object Satus not have a good style in my form: