djhi / meteor-autoform-materialize

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

Added support for Materialize icons. #74

Closed donwojtallo closed 9 years ago

donwojtallo commented 9 years ago

I hope it's ok.

Chun-Yang commented 9 years ago

Awesome! Can you add an example in the README.md? You can add an additional type under https://github.com/djhi/meteor-autoform-materialize#additional-type

Thank you!

donwojtallo commented 9 years ago

This addition is actually not new input type. I made a new template for icon and updated afFormGroup. I'm not sure how to include this in README.md. I explain how it works below. Just tell me where to paste that.

You can add icon to any field like this:

{{> afQuickField name='subject' icon='person'}}

For blank space in place of icon:

{{> afQuickField name='subject' icon='none'}}

Just use "none" or any other word that is not recognized by MaterializeCSS.

For textarea:

{{> afQuickField name='message' type='textarea' icon='person'}}

To use icon only:

{{> afIcon_materialize icon='person'}}
Chun-Yang commented 9 years ago

You can treat it as a new input type and name it 'Input with icon'. I will change the README after the merge.

byennen commented 9 years ago

:+1:

donwojtallo commented 9 years ago

What now? Will you merge it or you are waiting for me to do something? I'm not very familiar with contributing yet, sorry.

Chun-Yang commented 9 years ago

I will merge it shortly. Give me some time. Thank you!

Chun-Yang commented 9 years ago

Hey @djhi I merged it. Tell me your thought. We can publish a new version.