Hi Alex,

although I think that is a valid approach for other of components, I think
this is not in this case. Imagine users need to extend lots of containers
to append html text. I don't think that as an easy way. For that reason I
use to discuss with you how to do that.

In use cases where the need is isolated and focused only on that case, I
think that's the way to go, but considere how many MDL containers we
hace....that approach would be very cumbersome for final users.

For example in Grids.mxml I have

<mdl:GridCell column="1"><mdl:beads><js:InnerHTML
text="1"/></mdl:beads></mdl:GridCell>

Just to output a "1" inside a div. I think that, although more verbose is
the way to use in final app.For that case in particular...



2016-12-31 16:52 GMT+01:00 Alex Harui <aha...@adobe.com>:

> IMO, you could also create a new component called CardOfHTML (or something
> like that) and instead of extending ContainerBase, extend UIBase.  It
> would have "text" and "html" properties like Label and TextButton.  Then
> you could just do:
>
> <mdl:CardOfHTML>
>   This is some <h3>HTML</h3>content
> </mdL:CardOfHTML>
>
> You may need to wrap the content in a <p> or other top-level tag for now
> and specify XHTML as the default namespace.  IMO, we want these sorts of
> patterns to work since it is most like HTML coding.
>
> -Alex
>
> On 12/31/16, 3:14 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
> <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com>
> wrote:
>
> >Hi Om,
> >
> >You can:
> >
> >* Use js:TextNode but this only supports plain text
> >* use a combination of js:TextNode with other components (js:Span,
> >js:Div...)
> >* use InnerHTML bead that support html text but removes the rest of nodes
> >
> >You can find examples of all this in MDLExample (you can search in code
> >for
> >this)
> >
> >
> >2016-12-31 10:21 GMT+01:00 OmPrakash Muppirala <bigosma...@gmail.com>:
> >
> >> I need to add html content in mdl:Card.  Is there a component that I can
> >> simply add to the display list and set htmlText?
> >>
> >> I see an InnerHTML bead.  That does not not seem to work when added to
> >>the
> >> display list.
> >>
> >> Thanks,
> >> Om
> >>
> >
> >
> >
> >--
> >
> >Carlos Rovira
> >Director General
> >M: +34 607 22 60 05
> >http://www.codeoscopic.com
> >http://www.avant2.es
> >
> >Este mensaje se dirige exclusivamente a su destinatario y puede contener
> >información privilegiada o confidencial. Si ha recibido este mensaje por
> >error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> >proceda a su destrucción.
> >
> >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >comunicamos
> >que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >servicio o información solicitados, teniendo usted derecho de acceso,
> >rectificación, cancelación y oposición de sus datos dirigiéndose a
> >nuestras
> >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> >necesaria.
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Reply via email to