ngx-simple-colorpicker
A really simple colorpicker for Angular 2+
Last updated 2 years ago by michelre .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ngx-simple-colorpicker 
SYNC missed versions from official npm registry.

Ngx Simple Colorpicker

Description

This is a really simple colorpicker library for Angular 2+

Installation

npm i ngx-simple-colorpicker

Usage

Load the library

import { ColorPickerModule } from 'ngx-simple-colorpicker';
@NgModule({
  ...
  imports: [
    ...
    ColorPickerModule
  ]
})

Use it in your HTML

<color-picker
   [colors]="['#c62828', '#6a1b9a', '#283593', '#0277bd', '#00695c', '#558b2f', '#ef6c00', '#6d4c41', '#546e7a']"
   (selectColor)="changeColorAction($event)"></color-picker>

API

Inputs

@Input() Type Default Details
currentColor string '' The selected color
colors Array<string> [] Sample colors

Outputs

@Output() Value Details
selectColor string Emit when the user select a new color in the tooltip. The selected color is emitted

Development

Building the library

npm i
npm start

Library development

npm run packagr

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |