Skip to content

Instantly share code, notes, and snippets.

@lfreeland
Created September 17, 2017 17:37
Show Gist options
  • Select an option

  • Save lfreeland/29046c58c5d4b7cece8f2a8d21b339dd to your computer and use it in GitHub Desktop.

Select an option

Save lfreeland/29046c58c5d4b7cece8f2a8d21b339dd to your computer and use it in GitHub Desktop.
showToast Lightning Controller Code
handleToastEvent : function(component, event, helper) {
var toastMessageParams = event.getParams();
var message = toastMessageParams.message;
if (message.includes('<object_name>') && message.includes('was saved')) {
// do something here such as reload your component.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment