flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piotrz <piotrzarzyck...@gmail.com>
Subject [FlexJS, MDL] Color and Image in ContactChip bead
Date Sun, 04 Dec 2016 22:04:47 GMT
Hi Carlos,

1) Colors in Contact Chip

ContactChip in MDL example has classes which gives color for text and
background for contact part.

"mdl-color--teal" and "mdl-color-text--white"

How actually it should be implemented ? I should add some properties ?

contactColorName = "white", contactTextColorName = "red" in component code 

"mdl-color--" + contactColorName 

But more natural probably will be give user ability to set up "#FFFFFF". 
Maybe we should leave it as it is and if someone want to add color will have
provide it by CSS.

2) Contact part can be also an image. I was thinking to expose "image"
property - where it will be path to img. Question is how actually assing
such patch to span as it is show in example [1] ?

[1] https://paste.apache.org/dA7G


Apache Flex PMC
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Color-and-Image-in-ContactChip-bead-tp56972.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

View raw message