I have this lightning:select
component:
<lightning:select name="theme" aura:id="theme" label="Theme:" onchange="{! c.changeTheme }">
<option value="StandardSalesforce">Standard Salesforce</option>
<option value="Halloween">Halloween</option>
<option value="Bloodthirsty">Bloodthirsty</option>
<option value="Midnight">Midnight</option>
</lightning:select>
How can I disable one of the option
s in the onchange controller method ?
Thanks!
Best Answer
You can dynamically reset the values of the lightning:select by giving new set of values in the controller.
You can get more details from this. lightning:select.