Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Last active June 23, 2017 05:49
Show Gist options
  • Save msrivastav13/edab89deae3e57d9366619b497b63874 to your computer and use it in GitHub Desktop.
Save msrivastav13/edab89deae3e57d9366619b497b63874 to your computer and use it in GitHub Desktop.
<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>
({
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