<js:Image> is mostly unchanged and it wraps an img tag. <svg:Image> wraps an SVG <image> inside an <svg> element.
Note there’s BinaryImage as well as Image. The basic difference is that BinaryImage can take a BinaryData object for the image file (loaded using XHR), while Image takes a simple url. On Oct 26, 2016, at 8:06 PM, Alex Harui <aha...@adobe.com> wrote: > > > On 10/26/16, 7:19 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > <carlos.rov...@gmail.com on behalf of carlosrov...@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 >