Hi Yishayw,

in MDL there's a Badge component. This component could have different
styles that are created with different element tags.
There's 3 options: "a", "span" or "div"

I don't like the idea of three separate components (BadgeA, BadgeSpan and
BadgeDiv), so if I could not change at runtime, maybe I should do that at
creation time (createElement) ? but this seems less "flex"-ible for me.
What do you think to have a "type" property that you could set in MXML and
be used in createElement to create an "a", "span" or "div", but then this
could not be change vía AS3 (or changes would have no effect) ...thoughts?




2016-11-04 6:01 GMT+01:00 yishayw <yishayj...@hotmail.com>:

> Hi Carlos,
>
> We've been working under the assumption that the element doesn't change in
> run-time, just like you wouldn't change Element.tagName in JS. Why do you
> need that option? In which scenario would it not be better to just replace
> the component with a different one with a different element?
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-How-to-change-a-
> node-at-runtime-tp56205p56233.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



-- 

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.

Reply via email to