djhi / meteor-autoform-materialize

DEPRECATED - Meteor AutoForm Materialize templates
https://atmospherejs.com/mozfet/autoform-materialize
MIT License
47 stars 29 forks source link

Icon prefixes #60

Closed donwojtallo closed 9 years ago

donwojtallo commented 9 years ago

Is there any possibility to use a QuickField to render input with an icon prefix? Like this:

{{> afQuickField name='username' icon='account_circle'}}

to render this:

<div class="input-field col s6">
      <i class="material-icons prefix">account_circle</i>
      <input id="username" type="text" class="validate">
      <label for="username">Username</label>
</div>
djhi commented 9 years ago

Not currently. I'm not sure it's possible

Le jeu. 20 août 2015 à 13:56, donwojtallo notifications@github.com a écrit :

Is there any possibility to use a QuickField to render input with an icon prefix? Like this:

{{> afQuickField name='username' icon='account_circle'}}

to render this:

account_circle

— Reply to this email directly or view it on GitHub https://github.com/djhi/meteor-autoform-materialize/issues/60.

Gildas Garcia

donwojtallo commented 9 years ago

It would be nice to have this feature in the future.

Chun-Yang commented 9 years ago

@donwojtallo can you create a new inputType and write some doc on it? Please refer to https://github.com/djhi/meteor-autoform-materialize/tree/master/inputTypes. We would like to merge good commits! Thank you for your help.

donwojtallo commented 9 years ago

I was already thinking about this, but then I had to stop contributing for a while (not enough time). I can do this next week.

donwojtallo commented 9 years ago

https://github.com/djhi/meteor-autoform-materialize/pull/74 I could do this earlier, if I only knew it would be so simple. It works for me.