flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlosrov...@apache.org>
Subject Re: [FlexJS] InnerHTML new bead
Date Tue, 13 Dec 2016 23:43:04 GMT
2016-12-14 0:23 GMT+01:00 Alex Harui <aharui@adobe.com>:

>
> IMO, if you had a TextNode component, it would be a child just like any
> other child and you would define its order the way it should appear in the
> DOM.
>
> <js:Container>
>   <js:TextNode>This is some text</js:TextNode>
>   <js:Button />
>   <js:TextNode>This is more text</js:TextNode>
> </js:Container>
>
> Would product the DOM
> <div>This is some text<button />This is some more text</div>
>
>
So better to remove  the InnerHTML bead in favor of a TextNode component
right?
Less verbose mxml and don't need to mess with properties or listeners. I
think I'll take that route...

Thanks!


-- 
Carlos Rovira
http://about.me/carlosrovira

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message