flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] MDL - Dynamic Child Problem
Date Fri, 24 Feb 2017 04:00:44 GMT
FWIW, MXML cannot set constructor arguments.  All components instantiated
via MXML must have no constructor arguments or optional constructor
arguments.

I still think the lifecycle should be able to tell you whether an addChild
is happening "dynamically" or not.  Has that been explored and abandoned?

Thanks,
-Alex

On 2/23/17, 8:12 AM, "piotrz" <piotrzarzycki21@gmail.com> wrote:

>I was thinking more about solution for this and I think that interface is
>not
>the right way. 
>
>If my component will implement interface during creation I will  always
>have
>two lines of code:
>
>var textField:TextField = new TextField();
>textField.isDynamic = true:
>
>I think I will just add field to constructor to each component which will
>be
>dynamic.
>
>var textField:TextField = new TextField(true);
>
>Piotr
>
>
>
>-----
>Apache Flex PMC
>piotrzarzycki21@gmail.com
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Ch
>ild-Problem-tp59595p59836.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Mime
View raw message