On 11/28/16, 10:07 PM, "piotrz" <piotrzarzyck...@gmail.com> wrote:
>Hi Om, Carlos, > >I created yesterday bead DeletableChip. In DeletableChip there is a place >for icon on the right sigh of the Chip. [1] I'm wondering how actually it >should be implemented. > >Should I add to DeletableChip property for example image="cancel" which >takes name of the image ? > >/cancel/ > >If user want to add some custom icon will have to override style >"material-icons" as I understand ? > >[1] https://getmdl.io/components/index.html#chips-section > >Any thoughts ? I did a quick read about these icons. AIUI, it is an a particular string paired with a particular font that you might want to plug into a component. Sounds like a bead to me. The CancelIcon bead would know how to modify the host with the string "cancel" and assure that the font is available. That way, somebody won't misspell "cancel" without the compiler catching it. Of course, I could be wrong... -Alex