For example in buttons you can see:

<mdl:Button fab="true" ripple="true">
                <i class="material-icons md-48">face</i>
            </mdl:Button>

I think this should be refactored since Button is the only component
allowing direct inner html
Maybe we could make a "MaterialIcons" class that generates this tag. If we
follow our plan of making it all "compiler-safe" we could list the
posibilites as const in the class so people always use safe icons. Maybe
this should be a bead, since it will be used in non container comps.

what do you think?



2016-11-29 7:56 GMT+01:00 Alex Harui <aha...@adobe.com>:

>
>
> 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
>
>


-- 

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