flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlosrov...@apache.org>
Subject [FlexJS] Simple text in HTML
Date Thu, 24 Nov 2016 21:20:51 GMT

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

this translates in js to:

<div style="postiion:relative">
    <span class="Label" style="white-space: nowrap; cursor: default;
pointer-events: none;">1</span>

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message