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