No Alex,

the createElement only generates a <li> tag (the container)

I want the custom renderer to add inside the custom things
(span,...icons,...img,...)


<mdl:ListItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009";
                 xmlns:js="library://ns.apache.org/flexjs/basic"
                 xmlns:mdl="library://ns.apache.org/flexjs/mdl"
                 xmlns="http://www.w3.org/1999/xhtml";>         <-- that's
the li with conditional compilation in MDL swc

    <js:Container>                        <--- all this block is bypassed,
this is in MDLExample and is created by user
        <js:Span text="hello"/>

    </js:Container>
</mdl:ListItemRenderer>


I get :

<li class=" mdl-list__item">Widgets</li>

but not

<li class=" mdl-list__item">Widgets<div><span>hello</span></div></li>

or

<li class=" mdl-list__item"><div><span>hello</span></div></li>

I expect the later and use a binding with data in MXML (i.e: {data.var1})

i.e:

<js:Container>
        <js:Span text="{data.something}"/>

    </js:Container>


2016-12-09 0:29 GMT+01:00 Alex Harui <aha...@adobe.com>:

> Is the Span's createElement getting called?  I would recommend using the
> debugger watch the Span get instantiated and added to the renderer.
>
> HTH,
> -Alex
>
> On 12/8/16, 2:41 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
> <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com>
> wrote:
>
> >No, I'm saying that I put a <js:Span text="hello"/> in the custom item
> >renderer and is ignored (not <span>hello</span> in html output )
> >
> >I only get the <li> generated from createElement in the ListItemRenderer.
> >
> >So the problem is how to get the components declared in customitemrenderer
> >outputs in html inside the <li> tag created in createelement() method
> >
> >2016-12-08 23:14 GMT+01:00 Alex Harui <aha...@adobe.com>:
> >
> >>
> >>
> >> On 12/8/16, 2:08 PM, "carlos.rov...@gmail.com on behalf of Carlos
> >>Rovira"
> >> <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com>
> >> wrote:
> >>
> >> >Hi Alex,
> >> >
> >> >I changed ListItemRenderer to extend MXMLItemRenderer, but nothing
> >>changed
> >> >output is still:
> >> >
> >> >
> >> ><ul class="customListItemRenderer mdl-list"><li class="
> >> >mdl-list__item">Widgets</li><li class=" mdl-list__item">Thingys</li><
> li
> >> >class=" mdl-list__item">Sprockets</li><li class="
> >> >mdl-list__item">Doohickies</li></ul>
> >> >
> >> >I don't have any issue with sizes and layouts. My problem is that I
> >>want
> >> >to
> >> >nest custom HTML things, for example a <span>, and I don't get any
> >>output
> >> >but the current <li> container and it's text...
> >> >
> >> >Also, MXMLItemRenderer extends as well UIBase and not a "container"
> >>class
> >> >like Container or ContainerBase
> >>
> >> I don't think Container should really make a difference other than
> >> Container and MXMLItemRenderer know about layout so it should size and
> >> position children.
> >>
> >> But it sounds like you are saying that the js:Span is just placing text
> >>in
> >> the li and not creating a span?  I don't know of any code that would do
> >> that, so I think you'll just have to debug into it.
> >>
> >> -Alex
> >>
> >>
> >>
> >
> >
> >--
> >
> >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