ngx-colors
#455a64
Slide-In animations & Default palette
#c2185b
Popup animations & Custom palette
import { NgxColorsModule } from 'ngx-colors';
name | description |
---|---|
palette | Set a custom palette for the color picker. Can recibe an Array of string or NgxColor |
colorsAnimation | Set the animation for the color circles. Options:
|
format | Set output format. Options:
|
hideColorPicker | Hide the option to see the sliders to choose a color |
hideTextInput | Hide the text input |
colorPickerControls | Set the controls for the color picker. Options:
|
acceptLabel | Set the label for the accept button |
cancelLabel | Set the label for the cancel button |
overlayClassName | Set the class for the overlay |
attachTo | Set the element(ID) to append the overlay, Default is body |
attachTo | Set the element(ID) to append the overlay, Default is body |
name | description |
---|---|
change | Gets triggered when the color is changed. |
input | Gets triggered when the color is changed by the user |
slider | Gets triggered when the the alpha, hue or Lightness sliders are changed |
open | Gets triggered when the panel is opened. |
close | Gets triggered when the panel is closed. |
import { validColorValidator } from 'ngx-colors';
name | description |
---|---|
Error | invalidColor |