Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 14, 2018 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simpluslabs/c8d365af58ca01c815900307f29151aa to your computer and use it in GitHub Desktop.
Save simpluslabs/c8d365af58ca01c815900307f29151aa to your computer and use it in GitHub Desktop.
({
handleLoad : function(component, event, helper) {
console.log('handle handleLoad');
component.set("v.showSpinner", false);
},
handleSubmit : function(component, event, helper) {
event.preventDefault(); // Prevent default submit
var fields = event.getParam("fields");
component.find('createAccountForm').submit(fields); // Submit form
console.log('handle handleSubmit');
},
handleSuccess : function(component, event, helper) {
console.log('record updated successfully');
component.set("v.showSpinner", false);
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment