Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 713 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 713 Bytes

simple-angular-color-picker

A simple component to integrate for color picking (compatible ionic)

This is under MIT liscence so you can copy past it improve it etc

to use it:

<color-picker [hexColor]="'#FF0000'" (colorChanged)="setColor($event)"(colorTouchStart)="colorTouchStart()" (colorTouchEnd)="colorTouchEnd()"></color-picker>

hexColor is the color on which you want to start (the palette will be initialized on that color). If not provided it will be on #0000FF (blue).

colorChanged is the event to get the color back:

setColor(ev: any){ this.color = ev; }

Here is how it looks like:

Color picker