Hi Alex, I did a Div component, but I refer to just output text not attached to a container. Could we return text node as element directly. I want to output just text without a div or a or anything surrounding it
2016-11-25 7:17 GMT+01:00 Alex Harui <aha...@adobe.com>: > I thought you were going to make a Div component, just like "A" and others. > > A more Flex-friendly name might be InlineHTML or something like that. > > -Alex > > On 11/24/16, 1:20 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > <carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote: > > >Hi, > > > >some code like this: > > > ><div>some text</div> > > > >in FlexJS is at a minimm: > > > ><js:Container><js:Label text="some text"/></js:Container>. (or js:Div as > >well) > > > >this translates in js to: > > > ><div style="postiion:relative"> > > <span class="Label" style="white-space: nowrap; cursor: default; > >pointer-events: none;">1</span> > ></div> > > > >I think this is absurdly verbose...and you will conform with me that this > >basic code should be solved in FlexJS in some way since hardly we could > >argument we can't put "some text" and out put only that. > > > >I think this are the things that from watched from outside makes FlexJS > >worst than HTML/JS, so IMHO we need to get some solution to fix this. > > > >Would be very difficult to have a tag to would output just text? > > > ><js:Container><js:Text="some text"/></js:Container> > > > >translate to: > > > ><div style="postiion:relative">some text</div> > > > >or something similar...? > > > >(Another thing I already pointed is the several styles like > >"position:relative", than maybe we could have some compiler option to > >avoid > >them, but I don't want to lose focus so maybe we could get to that later) > > > >-- > >Carlos Rovira > >http://about.me/carlosrovira > > -- 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.