An open API service indexing awesome lists of open source software.

https://github.com/forms-angular/fng-colour-picker

A colour picker for forms-angular
https://github.com/forms-angular/fng-colour-picker

Last synced: 18 days ago
JSON representation

A colour picker for forms-angular

Awesome Lists containing this project

README

          

# fng-colour-picker
Plugin for forms-angular that adds a colour picker (https://github.com/ruhley/angular-color-picker).

## Usage

npm install fng-colour-picker

Add the following lines to your index.html (or equivalent) file.







Add `fng.colourPicker` to the list of servies your Angular module depends on.

In your Mongoose schemas you can set up fields like this:

colour: {type: String, form:{directive: 'fng-colour-picker'}},

Options can be added to a fngColourPicker object within the form object.
A complete list of setting options can be found in the Settings section of [this page](https://github.com/ruhley/angular-color-picker).

For (my) convenience, the following defaults have been changed from https://github.com/zhaber/angular-js-bootstrap-datetimepicker:

alpha: false,
swatch-only: true