Last active
June 23, 2017 05:49
-
-
Save msrivastav13/edab89deae3e57d9366619b497b63874 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component > | |
implements="lightning:actionOverride,force:hasRecordId,force:hasSObjectName"> | |
<aura:handler name="render" value="{!this}" action="{!c.onRender}"/> | |
<aura:attribute name="test" type="String"/> | |
{!v.test} | |
<lightning:button label="Edit" onclick="{!c.handleEdit}"/> | |
</aura:component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
onRender: function(component, event, helper) { | |
console.log('rendered'); | |
}, | |
handleEdit: function(component, event, helper) { | |
console.log('edit action'); | |
component.set("v.test", 'test'); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment