formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.22k stars 405 forks source link

Color picker and file fild #576

Closed tiagocedrim closed 8 years ago

tiagocedrim commented 8 years ago

How do I have fields of type file and color picker?

benoror commented 8 years ago

Hi @tiagocedrim! Thanks for your interest in angular-formly. I'm sure that angular-formly can do this for you. The best way to get help is by following the instructions here: http://help.angular-formly.com

I'm going to go ahead and close this issue because the github issues for this project are reserved for bug reports and feature requests. See you on chat! Thanks!

benoror commented 8 years ago

You can set type attribute to default input templates this way:

    defaultOptions: {
      templateOptions: {
        type: 'file'
      }
    }
    defaultOptions: {
      templateOptions: {
        type: 'color'
      }
    }

For more information on HTML Input Types see: http://www.w3schools.com/htmL/html_form_input_types.asp