Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
ngx-color-palette
Advanced tools
Angular library which provides color picker functionality to your angular application.
Angular library which provides color picker functionality to your angular application.
A color picker is a graphical user interface widget, usually found within graphics software or online, used to select colors and, in some cases, to create color schemes.
npm i ngx-color-palette
Now position
your color picker with additional attribute.
top, bottom, left, right, bottom-left, bottom-right, top-left, top-right, center
Import the module on your app.module.ts
file as follow.
import { NgxColorPaletteModule } from 'ngx-color-palette';
Then import the module as follow on imports array
NgxColorPaletteModule
on .html
<ngx-color-palette [color]="color" [squared]="false" [position]="position" (currentColor)="currentColor($event)"></ngx-color-palette>
on .ts
color = '#FBC02D'; // any color value (name / hex / rgb / hsl)
public currentColor(event: any) { // to receive output
this.color = event.color;
}
Field | type | Info |
---|---|---|
color | string | Variable to bind |
squared | boolean | Non-rounded egdes |
currentColor | event / method | to get changed / emitted value |
postion | string | place the palette |
top, bottom, left, right, bottom-left, bottom-right, top-left, top-right, center |
To use this package as a service npm i ngx-color-palette
install this on the root angular project .
Note: Don't forget to run this commend
npm i ngx-color-palette
on root folder or else it will throw error.
FAQs
Angular library which provides color picker functionality to your angular application.
The npm package ngx-color-palette receives a total of 28 weekly downloads. As such, ngx-color-palette popularity was classified as not popular.
We found that ngx-color-palette demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.