I am creating modal popup canvas window in a parent page. When I close the popup how do we get notification in parent screen that child popup is just closed. Any event for that ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The code to show your popup:
Inside your
MyPopupclass, you will have a button for closing the popup. Simply hook the click event to publish a “CLOSE” event:I prefer this mechanism over having the
MyPopupobject callingPopUpManger.removePopUp(as @Fank is suggesting) because it couples theMyPopupcomponent to thePopUpManagerwhich I don’t like. I’d prefer the user ofMyPopupto decide how to use the component.Honestly, though, these are two very similar mechanisms to perform the same end goal.