Created
August 15, 2017 19:26
-
-
Save JitendraZaa/73eac8760c387835de481cf142f8bc8f to your computer and use it in GitHub Desktop.
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
| ({ | |
| openWindow : function(component, event, helper) { | |
| helper.openWindow(component, event, helper); | |
| } | |
| }) |
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
| ({ | |
| openWindow : function(component, event, helper) { | |
| $A.createComponent( | |
| "c:ModalWindow", | |
| { | |
| "title": component.get("v.modalTitle"), | |
| "body": component.get("v.modalMessage") | |
| }, | |
| function(msgBox){ | |
| if (component.isValid()) { | |
| var targetCmp = component.find('ModalDialogPlaceholder'); | |
| var body = targetCmp.get("v.body"); | |
| body.push(msgBox); | |
| targetCmp.set("v.body", body); | |
| } | |
| } | |
| ); | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment