Skip to content

Instantly share code, notes, and snippets.

@choudharymanish8585
Created July 16, 2018 01:17
Show Gist options
  • Save choudharymanish8585/07b297c33ddee4115d7c4e6a93aff6d3 to your computer and use it in GitHub Desktop.
Save choudharymanish8585/07b297c33ddee4115d7c4e6a93aff6d3 to your computer and use it in GitHub Desktop.
({
getAllAccounts : function(component, helper) {
//Calling base component's helper method to call Aura Method
helper.callServer(component, "c.getAccounts",
function(response){
if(response){
component.set("v.data", response);
//Calling showToast method of Base component
helper.showToast({
"title": "SUCCESS",
"type": "success",
"message": "Account details are loaded"
});
}
});
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment