Name | Type | Default | ||||||
---|---|---|---|---|---|---|---|---|
colorMode | String | 'saturation' | ||||||
Sets or gets the color mode. Possible Values:
Code examples
Set the
Get the
Try it: colorMode is set to 'hue'
|
||||||||
disabled | Boolean | false | ||||||
Enables or disables the color picker. Code examples
Set the
Get the
Try it: disabled is set to true
|
||||||||
height | Number/String | null | ||||||
Sets or gets the height of the color picker. Code examples
Set the
Get the
Try it: height is set to 300
|
||||||||
showTransparent | Boolean | false | ||||||
Sets or gets the showTransparent property. Code examples
Set the
Get the
Try it: showTransparent is set to true
|
||||||||
width | Number/String | null | ||||||
Sets or gets the width of the color picker. Code examples
Set the
Get the
Try it: width is set to 300
|
||||||||
Events |
||||||||
colorchange | Event | |||||||
This event is triggered when a new color is picked. Code examples
Bind to the
|
||||||||
Methods |
||||||||
getColor | Method | |||||||
Gets the color.
Object - object.hex - color as string. object.r, object.g, object.b - numbers from 0 to 255. Code examples
Invoke the
|
||||||||
setColor | Method | |||||||
Sets a color.
None Code examples
Invoke the
|