You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Alex Harui <ah...@adobe.com> on 2016/12/01 00:23:43 UTC
Re: [FlexJS] Simple text in HTML
On 11/30/16, 2:34 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com> wrote:
>two things:
>
>a) Why it should be a UIBase and not a Container or ContainerBase?
A Container is meant to accept an arbitrary set of child components and
doesn't by default have a text or html property.
IMO, inline HTML is not a set of child components, but just inline HTML as
a string. The compiler is set up to do that. A Container's default
property is the mxmlContent property. I would set the default property
for LI to be text/html.
>
>b) I think a bead should right to do this so we could apply to whatever
>component (regarding a was not a problem)
IMO, that's just more verbose, but you are certainly welcome to introduce
beads to try to accomplish the same thing as inline HTML.
-Alex