Hi,

I'm not sure if this is the right approach, but I took some ideas from Josh,
Alex and MDL library website, and modified UIBase.as class inside HTML
package. I modified it to this,


> public function addElement(c:IChild, dispatchEvent:Boolean = true):void
> {
>             COMPILE::JS
>             {
>                       var window:Object = document.defaultView;
>                       if("componentHandler" in window)
>                       {
>                           
> window["componentHandler"].upgradeElement(c.positioner);
>                       }
> 
>                 element.appendChild(c.positioner);
>                 (c as IUIBase).addedToParent();
>             }
> }

I tested this works nice, although my tests was limited to adding TextField
and Button components at this moment. And TextField also didn't tooltip but
other features seems good to my initial tests!

Thanks!



--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59680.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to