0.0.5 • Published 5 years ago

@pixmama/ngx-light-color-picker v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Angular Light Color Picker

Angular 7 Color Picker Component with no dependencies required. This is a Color Picker Component for Angular 7.

Installation

npm i @pixmama/ngx-light-color-picker

Usage

Use it inside your components, for example:

<ngx-light-color-picker class="color-picker" [height]="300" [width]="300" (colorSelected)="onColorSelected($event)"></ngx-light-color-picker>

  • Add NgxLightColorPickerModule in your app.module.ts:
import {NgxLightColorPickerModule} from 'angular2-color-picker';
 
 @NgModule({
     ...
     imports: [NgxLightColorPickerModule]
 })

Build

git clone https://github.com/pixmama/ngx-light-color-picker.git
npm install
cd ngx-light-color-picker
npm run build
gulp copylib

Optional parameters

  [height] = 300
  [width]  = 300

Available events

(colorSelected) = onColorSelected($event)