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] Links, ToggleSwitch and Image Questions
Date Wed, 26 Oct 2016 17:06:39 GMT


On 10/26/16, 7:19 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:

>
>3.- I start to need manage images (jpg, png,...) but I'm a bit lost with
>this in general, there's some documentation about image management in
>FlexJS? I see there's a js:Image component, but I think my needs are more
>related to how use images vía CSS, and manage width, height, positioning,
>and other kind of image presentation options.

I haven't looked too closely at what Harbs and Yishay are doing. I thought
js:Image just wrapped an <img> tag.
Once you create that, it should be managed via CSS like anything else.
All Basic components should simply be injecting HTMLElements into the DOM
and so they should be responding to CSS.

If you are asking about per-tag styles, there is a "style" property where
you can give it the same string you would in HTML, and we have various
classes you can use as well that allow you to specify styles in a more
declarative fashion.  You can look at the FlexJSStore example to see the
various ways.

HTH,
-Alex

Mime
View raw message