Skip to content

Instantly share code, notes, and snippets.

@choudharymanish8585
Created November 2, 2018 21:22
Show Gist options
  • Save choudharymanish8585/e4489cd940ffc7da6fc328fa0d38c39d to your computer and use it in GitHub Desktop.
Save choudharymanish8585/e4489cd940ffc7da6fc328fa0d38c39d to your computer and use it in GitHub Desktop.
({
getAllAccounts : function(component, helper) {
//Calling BaseJS method to call Aura Method
callServer(component, "c.getAccounts",
function(response){
if(response){
component.set("v.data", response);
//Calling showToast method of BaseJS
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