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
- Host: GitHub
- URL: https://github.com/forms-angular/fng-colour-picker
- Owner: forms-angular
- License: mit
- Created: 2017-10-16T10:50:20.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T11:07:47.000Z (over 1 year ago)
- Last Synced: 2024-05-23T09:51:30.475Z (over 1 year ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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