I want to handle the colors of the values in Text control (sap.m). If the value is "TRUE"
, the color is green. Otherwise it will be red if the value is "FALSE"
.
<Text
class="{= ${HintTable>IS_ENABLED} === 'TRUE' ? 'greenTextColor' : redTextColor'}"
text="{HintTable>IS_ENABLED}"
/>
But it doesn't seem to be working. I mean, the class
cannot receive the "greenTextColor"
nor "redTextColor"
.
Did I make something wrong?