9.0.2 • Published 4 years ago
np-ui-color-picker v9.0.2
np-ui-color-picker
Angular 9 Native color picker component.
Check demo Here
NPM
$ 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.
Contributors
9.0.2
4 years ago
9.0.1
4 years ago
9.0.0
4 years ago
1.5.0
4 years ago
1.4.7
4 years ago
1.4.5
4 years ago
1.4.4
4 years ago
1.4.3
4 years ago
1.4.2
4 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago