Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
angular4-color-picker
Advanced tools
Readme
Angular 4 Color Picker Directive/Component with no dependencies required.
This is a Color Picker Directive/Component for Angular 4.
npm i --save angular4-color-picker
<input [(colorPicker)]="color" [style.background]="color" [value]="color"/>
<input [colorPicker]="color" (colorPickerChange)="color=$event" [style.background]="color" [value]="color"/>
import {ColorPickerModule} from 'angular4-color-picker';
@NgModule({
...
imports: [ColorPickerModule]
})
import {Component} from '@angular/core';
import {ColorPickerService} from 'angular4-color-picker';
@Component({
selector: 'my-app',
templateUrl: 'app/demo.html'
})
export class AppComponent {
private color: string = "#127bdc";
constructor(private cpService: ColorPickerService) {
}
}
var map = {
...
'angular4-color-picker': 'node_modules/angular4-color-picker'
};
var packages = {
...
'angular4-color-picker': {main:'index.js', defaultExtension: 'js'}
};
#Build
git clone https://github.com/rvmoldova/angular4-color-picker.git
npm install
cd agular2-color-picker
npm run build
gulp copylib
#Options Default option is the first item.
[cpOutputFormat]="'hex', 'rgba', 'hsla'"
[cpPosition]="'right', 'left', 'top', 'bottom'"
[cpPositionOffset]="'0%'"
[cpPositionRelativeToArrow]="false, true"
[cpWidth]="'230px'"
[cpHeight]="'auto'"
[cpSaveClickOutside]="true, false"
[cpOKButton]="false, true"
[cpOKButtonClass]="''"
[cpOKButtonText]="'OK'"
[cpCancelButton]="false, true"
[cpCancelButtonClass]="''"
[cpCancelButtonText]="'Cancel'"
[cpFallbackColor]="'#fff'"
[cpPresetLabel]="'Preset colors'"
[cpPresetColors]="[]", e.g: "['#fff', '#000']"
[cpToggle] = "false, true"
[cpIgnoredElements]="[]"
[cpDialogDisplay]="'popup,' 'inline'"
[cpAlphaChannel]="'hex6', 'hex8', 'disabled'"
#Extra content If you want to change precalculated images for color picker sliders, you can find a little script in this project: https://github.com/Alberplz/angular-colorpicker-directive
#Tested in:
#For original author visit https://github.com/Alberplz/angular4-color-picker
FAQs
Angular 4 Color Picker Directive, no dependences required.
The npm package angular4-color-picker receives a total of 432 weekly downloads. As such, angular4-color-picker popularity was classified as not popular.
We found that angular4-color-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.