0.8.0 • Published 10 years ago

mi-angular-color-picker v0.8.0

Weekly downloads
11
License
MIT
Repository
github
Last release
10 years ago

mi-angular-color-picker (for Angular-formly)

Installation

Install with npm

$ npm install mi-angular-color-picker --save

Development

Copy css/colorpicker.css and js/mi-angular-color-picker.js. Add a dependency to your app, for instance:

# app.js
require('mi-angular-color-picker');
angular.module('myApp', ['mi.ColorPicker'])

Examples with Angular-formly:

in your controller model:

vm.fields = [
      {
         key: 'backgroundColor',
         type: 'colorpicker',
         defaultValue: '#961c1c',
         templateOptions: {
         label: 'ColorPicker',
         placeholder: 'ColorPicker',
         required: true,
         colorPickerFormat: '\'hex\'',
         colorPickerAlpha: true,
         colorPickerPos: '\'top left\'',
         colorPickerSwatchBootstrap: false
         },
         validation: {
           show: true
         }
      }
];

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This library is under the MIT license.

0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago