Created
September 17, 2017 17:37
-
-
Save lfreeland/29046c58c5d4b7cece8f2a8d21b339dd to your computer and use it in GitHub Desktop.
showToast Lightning Controller Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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