Socket
Socket
Sign inDemoInstall

fng-colour-picker

Package Overview
Dependencies
3
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fng-colour-picker

Color picker for forms-angular


Version published
Weekly downloads
72
decreased by-12.2%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

<link rel="stylesheet" href="angularjs-color-picker/dist/angularjs-color-picker.min.css" />
<link rel="stylesheet" href="angularjs-color-picker/dist/themes/angularjs-color-picker-bootstrap.min.css" />
<script src="fng-colour-picker/fng-colour-picker.js"></script>
<script src="tinycolor2/dist/tinycolor-min.js"></script>
<script src="angularjs-color-picker/dist/angularjs-color-picker.min.js"></script>

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.

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

alpha: false,
swatch-only: true

Keywords

FAQs

Last updated on 26 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc