Hi Om,

thanks for pointing this. I was just thinking on this way few hours ago and
want to propose it here. Maybe is more verbose but we save us to write 900
classes and 900 constants...only we do the second.

@Pitor, what do you think?

About Alex proposal, I should think about it if there's some problem. If we
allow that...maybe in text properties would be a problem and would output "
FontAwesomeIconType.TWITTER" ?




2017-01-22 22:44 GMT+01:00 OmPrakash Muppirala <bigosma...@gmail.com>:

> On Sun, Jan 22, 2017 at 10:17 AM, Carlos Rovira <carlosrov...@apache.org>
> wrote:
>
> > Hi,
> >
> > while doing thing to close MDL implementation I saw that Material Design
> > Icons library is about 900 icons (60Mb). You can see all here:
> >
> > https://material.io/icons/
> >
> > We was pushing a class for every icon (i.e: MaterialIconAdd,
> > MaterialIconCancel)
> >
> > Maybe doing 900 classes could be so cumbersome, so what about have only a
> > class MaterialIcon
> >
> > so doing :
> >
> > <mdl:MaterialIcon text="add"/>
> >
> >
> I prefer this.  This is how I implemented FontAwesome icons.
>
> Usage example:
> https://github.com/apache/flex-asjs/blob/daffc02861a14489239e81483b95f8
> 508f3a2136/examples/flexjs/FlexTeamPage_MDL/src/main/flex/itemRenderers/
> MemberItemRenderer.mxml#L69
>
> All icons are enumerated here:
> https://github.com/apache/flex-asjs/blob/ffcc9a3dc758ad1a670e4ad810e189
> 94a124b60c/frameworks/projects/FontAwesome/src/main/
> flex/org/apache/flex/fa/FontAwesomeIconType.as
>
> Thanks,
> Om
>
>
> > vs
> >
> > <mdl:MaterialIconAdd/>
> >
> > What do you think?
> >
>
>
>
>
> >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>



-- 

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