You need to sign in to do that
Don't have an account?
Ravichandra sindhe
i am unable to enable the button
<lightning:button variant="brand" label="Yes" title="Brand action" iconName="utility:check" iconPosition="left" disabled="true" aura:id="yesID" />
var DisYes=cmp.find("v.yesID");
DisYes.set("v.disabled", false);
Greetings to you!
You are using aura:id to find the component. The find() function has one parameter, which is the local ID of a component within the markup.
You don't need value provider for this.
Replace this line of code: var DisYes=cmp.find("v.yesID");
To this: var DisYes=component.find('yesID');
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
Greetings to you!
You are using aura:id to find the component. The find() function has one parameter, which is the local ID of a component within the markup.
You don't need value provider for this.
Replace this line of code: var DisYes=cmp.find("v.yesID");
To this: var DisYes=component.find('yesID');
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Thanks brother
it worked
below is teh code..i have used
var DisYes=cmp.find("yesID");