You need to sign in to do that
Don't have an account?
m 10
how to write if condition for disabled in lightning component
<ui:InputTextArea value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes" disabled="{!v.isDisabled == false}" />
<ui:InputText value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes1" disabled="{!v.isDisabled == True}" />
<ui:InputText value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes1" disabled="{!v.isDisabled == True}" />
Try the bwlow way:
<aura:attrribute type="boolean" name="isDisabled " default="false" />
<ui:InputTextArea value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes" disabled="{!!v.isDisabled}" />
<ui:InputText value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes1" disabled="{!v.isDisabled}" />
Thanks,
Maharajan.C
<ui:InputTextArea value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes" disabled="{!!v.isDisabled}" />
<ui:InputTextArea value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes1" disabled="{!v.isDisabled}" />
Inputtext"