Hello ,
I'm trying to do a switch case in text color or background color but nothing work
switch( ) {
case {{ getAllAmlFailed.data.length > 0 }}:
return "#E01E5A"
case {{ getAllAmlFailed.data.length > 1 }}:
return "#2EB67D"
case {{ getAllAmlFailed.data.length > 1 }}:
return "#116EE3"
}
Ternary work perfectly
{{ getAllKycFailed.data.length > 0 ? "#E01E5A" : "#2EB67D"}}
But i want to put an extra step like below
=== 0 ? GREEN
> 0 ? ORANGE
> 5 ? RED
thanks for the help