9.0.2 • Published 4 years ago

np-ui-color-picker v9.0.2

Weekly downloads
46
License
MIT
Repository
github
Last release
4 years ago

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

  1. ngModel : string
    Selected color variable for two way data binding.
  2. disabled : boolean
    Set component is disabled or not.
  3. required : boolean
    Default value is false. add required attribute to input textbox.
  4. defaultOpen : boolean
    Set color picker by default open or not.
  5. colors : string[]
    List of pre defined colors, if not passed this variable, default color list will be displayed.
  6. placeholder : string
    Set placeholder for color picker.
  7. hideColorInput : boolean
    Hide color input box, only show seleced color block.
  8. styleClass : string
    set name of css class.

Apis

  1. getSelectedRGB()
    Get selected color in RGB format.

Methods

  1. onChange()
    On change event binding for component.

Other np-ui components for Angular

  1. Data grid
  2. Date picker
  3. Time picker
  4. Color picker

License

This project is licensed under the MIT License.

Contributors

npm.io

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