You need to sign in to do that
Don't have an account?
Raksha Narayan
change the text color based on condition in aura component
I have a list of strings displayed as a dropdown. Consider the below code where TypePicklist contains the values: Normal, High and Low. I want to change the color of the text "High" dynamically. Can someone help me on this?
<lightning:select label="Type">
<aura:iteration items="{!v.TypePicklist}" var="val">
<option value="{!val}"> {!val}</option>
</aura:iteration>
</lightning:select>
<lightning:select label="Type">
<aura:iteration items="{!v.TypePicklist}" var="val">
<option value="{!val}"> {!val}</option>
</aura:iteration>
</lightning:select>
try the suggestions as mentioned in the above developer discussion.
For further reference check the below,
https://developer.salesforce.com/forums/?id=906F000000099PiIAI