Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 13, 2018 11:06
Show Gist options
  • Save simpluslabs/5e0e5c53d1677be82126a767f7f749de to your computer and use it in GitHub Desktop.
Save simpluslabs/5e0e5c53d1677be82126a767f7f749de to your computer and use it in GitHub Desktop.
({
handleRecordUpdated: function(component, event, helper) {
var eventParams = event.getParams();
if(eventParams.changeType === "LOADED") {
// record is loaded (render other component which needs record data value)
console.log("Record is loaded successfully.");
} else if(eventParams.changeType === "CHANGED") {
// record is changed
} else if(eventParams.changeType === "REMOVED") {
// record is deleted
} else if(eventParams.changeType === "ERROR") {
// there’s an error while loading, saving, or deleting the record
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment