File tree Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change 1- angularjs-color-picker
2- =====================
1+ # angularjs-color-picker
2+
33
44AngularJS Color Picker Directive
55
6- Installation
7- =====
8- * Get through bower
6+ ## Installation
7+
8+ #### Bower
9+
910``` shell
1011bower install angularjs-color-picker --save-dev
1112```
1213
14+ #### Npm
15+ ``` shell
16+ npm install angularjs-color-picker --save-dev
17+ ```
18+
19+ #### Usage
20+
1321* Include tinycolor.js, angularjs-color-picker.js and angularjs-color-picker.css
1422``` html
1523 <link rel =" stylesheet" href =" bower_components/angularjs-color-picker/angularjs-color-picker.min.css" />
@@ -29,8 +37,8 @@ angular.module('app', ['color.picker']);
2937<color-picker ng-model =" myColor" ></color-picker >
3038```
3139
32- Options
33- =====
40+ ## Options
41+
3442If a list is given then choose one of the items. The first item in the list will be the default.
3543``` html
3644<color-picker
@@ -46,16 +54,16 @@ If a list is given then choose one of the items. The first item in the list will
4654></color-picker >
4755```
4856
49- Requirements
50- =====
57+ ## Requirements
58+
5159* angularjs
5260* bootstrap - looking at removing in future versions if requested enough (currently only used for styling the input text box)
5361* tinycolor.js - looking at removing in future versions if requested enough (33kb not minified)
5462
5563NO requirement for jQuery!
5664
57- Inspiration
58- =====
65+ ## Inspiration
66+
5967Inspiration and code taken from projects like
6068* http://kaihenzler.github.io/angular-minicolors/
6169* http://mjolnic.github.io/bootstrap-colorpicker/
You can’t perform that action at this time.
0 commit comments