Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 13, 2018 13:43
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/e3f47784927c46563dc6025aa5d14c8b to your computer and use it in GitHub Desktop.
Save simpluslabs/e3f47784927c46563dc6025aa5d14c8b 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