On 1/16/17, 1:20 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com> wrote:
>Hi Alex, > >The MDL Dialog is a <dialog> html tag that is added to document.body >So what's the way to get the Application instance in FlexJS? So if it can only be added to document.body then findPopUpHost may not be safe enough. You may need to build out your own hook to it. There is no standard way to get the Application because in the past there was no consensus on the proper way to do it. Some people hated globals, some didn't like Singletons, etc. t haven't tried it, but I think you can create static properties in your MXML file and reference it elsewhere in your code. > >I don't know how popups works on FlexJS but as in Flex SDK I suppose I >should declare the dialog in external file or in <fx:Component> (don't now >if this exist here) and not MXML to avoid insertion in the normal DOM >tree, >and operate like Alert.show() right? > Sounds right to me. -Alex