README
np-ui-color-picker
Angular 9 Native color picker component.
Here
Check demoNPM
$ npm install np-ui-color-picker
HTML
<np-ui-color-picker
[(ngModel)]="currentColor">
</np-ui-color-picker>
Properties
ngModel
: string
Selected color variable for two way data binding.disabled
: boolean
Set component is disabled or not.required
: boolean
Default value is false. add required attribute to input textbox.defaultOpen
: boolean
Set color picker by default open or not.colors
: string[]
List of pre defined colors, if not passed this variable, default color list will be displayed.placeholder
: string
Set placeholder for color picker.hideColorInput
: boolean
Hide color input box, only show seleced color block.styleClass
: string
set name of css class.
Apis
getSelectedRGB()
Get selected color in RGB format.
Methods
onChange()
On change event binding for component.
Other np-ui components for Angular
License
This project is licensed under the MIT License.