'How to use ternary operator in Lighting Aura component to toggle button's disabled attribute
I am trying to disable a Lighting Aura button component using ternary operator but it doesn't seems to work, I would really appreciate If someone can explain the reason or point me to any documentation which I can refer.
Thanks you
<lightning:button variant="neutral" label="OK" title="OK" disabled= "{! 1==true?true:false}" onclick="{!c.transferCall}"/>
<lightning:button variant="neutral" label="OK" title="OK" disabled= "{! 0==true?true:false}" onclick="{!c.transferCall}"/>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
