flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] Conditional compilation in user projects
Date Thu, 08 Dec 2016 23:29:36 GMT
Is the Span's createElement getting called?  I would recommend using the
debugger watch the Span get instantiated and added to the renderer.


On 12/8/16, 2:41 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlos.rovira@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 <aharui@adobe.com>:
>> On 12/8/16, 2:08 PM, "carlos.rovira@gmail.com on behalf of Carlos
>> <carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com>
>> wrote:
>> >Hi Alex,
>> >
>> >I changed ListItemRenderer to extend MXMLItemRenderer, but nothing
>> >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
>> >to
>> >nest custom HTML things, for example a <span>, and I don't get any
>> >but the current <li> container and it's text...
>> >
>> >Also, MXMLItemRenderer extends as well UIBase and not a "container"
>> >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
>> 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
>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
>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
>oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación

View raw message