Skip to content

Commit 27c28fe

Browse files
committed
Bumping to 0.1.0
1 parent b3f028b commit 27c28fe

File tree

7 files changed

+464
-359
lines changed

7 files changed

+464
-359
lines changed

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
angular-color-picker
1+
angularjs-color-picker
22
=====================
33

44
AngularJS Color Picker Directive
@@ -10,18 +10,28 @@ NO requirement for jQuery!
1010

1111
Installation
1212
=====
13-
* Include tinycolor.js, angular-color-picker.js and angular-color-picker.css
13+
* Include tinycolor.js, angularjs-color-picker.js and angularjs-color-picker.css
1414
* Add the module line
1515
```javascript
16-
angular.module('app', [
17-
'color-picker'
18-
]);
16+
angular.module('app', ['color-picker']);
1917
```
2018
* Include in your view
2119
```javascript
22-
<color-picker ng-model="myColor"></color-picker>
20+
<input type="text" ng-model="myColor" color-picker>
2321
```
2422

23+
Options
24+
=====
25+
If a list is given then choose one of the items. The first item in the list will be the default.
26+
```javascript
27+
ng-model=""
28+
format="hsl, hsv, rgb, hex"
29+
alpha="true, false"
30+
swatch="true, false"
31+
swatch-pos="left, right"
32+
pos="bottom left, bottom right, top left, top right"
33+
case="upper, lower"
34+
```
2535

2636
Inspiration and code taken from projects like
2737
* http://kaihenzler.github.io/angular-minicolors/

angular-color-picker.js

Lines changed: 0 additions & 317 deletions
This file was deleted.

0 commit comments

Comments
 (0)