Hi,

just committed a InnerHTML bead that solves one of my main concerns with
how to output HTML from MXML/AS in any component

For example:

<mdl:CardSupportingText>
                    <js:beads>
                        <js:InnerHTML>
                            <![CDATA[
                                Lorem ipsum dolor sit <b>amet</b>,
consectetur <i>adipiscing elit</i>. Mauris sagittis pellentesque lacus
eleifend lacinia...
                            ]]>
                        </js:InnerHTML>
                    </js:beads>
                </mdl:CardSupportingText>

outputs:

<div class=" mdl-card__supporting-text">
                                Lorem ipsum dolor sit <b>amet</b>,
consectetur <i>adipiscing elit</i>. Mauris sagittis pellentesque lacus
eleifend lacinia...
                            </div>


Right now the text is always added first (due to flexjs component life
cycle).
Just found that maybe users would want to get the text after some other
nodes added and just read a Yishaw response on "beadsAdded" event that I
think could help with that.

I think this will make me clean or remove some components I did that would
benefit from this. For example, now tags like js:H1 will not need to have a
text property, and js:Div will be redundant in favor of js:Container (or
maybe we want to maintain a js:Div?)

Thanks

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

Reply via email to