Skip to content

speedfl/simple-angular-color-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published