1.0.6 • Published 7 years ago

toggle-color-picker v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Angular Toggle Color Picker Module

A Guider for Angular Toggle Color Picker modules

Credits

This project is basically a stripped down version of angular-async-local-storage by https://github.com/cyrilletuzi.

This project is a toggle color picker based on angular4. Similar with ng2-color-picker

angular toggle color picker

How to use

Dependencies

The module relies on bootstrap, ng-bootstrap for dropdown functionality.

Installation

To include in your project install via NPM with:

npm install --save toggle-color-picker

You will then need to include the module to your app.module.ts:

import { ColorPickerModule } from 'ng2-color-picker'; 
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';

// ...

@NgModule({
    imports: [
        NgbModule.forRoot(); // In Feature Module, you don't need 'forRoot()'
        ColorPickerModule
    ]
})
///...

HTML Component Markup

<toggle-color-picker
    (selected)='selected($event)'
    [option]="optionColors">
</toggle-color-picker>

Configuration

Current list of configuration options, types and default values: option is object containers defaultColor and configColorList.

PropertyTypeDefaultDescription.
defaultColorstring#808080default color is gay.
configColorListlist['#808080','#000000',#ffffff]need configuration. display color list to choose

License

MIT

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago