ColorGradientComponent
Represents the Kendo UI ColorGradient component.
The ColorGradientComponent lets you select a color by moving a drag handle over a gradient area. You can use it directly or as part of the kendo-colorpicker.
<kendo-colorgradient [(ngModel)]="color"></kendo-colorgradient>Selector
kendo-colorgradient
Export Name
Accessible in templates as #kendoColorGradientInstance="kendoColorGradient"
Inputs
| Name | Type | Default | Description | 
|---|---|---|---|
| clearButton | 
 | 
 | Shows or hides the Clear color button. | 
| contrastTool | 
 | Enables the color contrast tool that checks the contrast ratio of the selected color against a predefined background color. See example. | |
| delay | 
 | 
 | Sets the delay (in milliseconds) before the value changes on handle drag. | 
| disabled | 
 | 
 | Disables the ColorGradient. To disable it in reactive forms, see Forms Support. | 
| format | 
 | 
 | Sets the output format of the ColorGradient. The input value may be in a different format, but it will be parsed into the output format after the component processes it. | 
| gradientSliderSmallStep | 
 | 
 | Sets the step (in pixels) for moving the gradient drag handle with  | 
| gradientSliderStep | 
 | 
 | Sets the step (in pixels) for moving the gradient drag handle with the arrow keys. | 
| opacity | 
 | 
 | Shows or hides the alpha slider. | 
| readonly | 
 | 
 | Sets the read-only state of the ColorGradient. | 
| size | 
 | 
 | Sets the size of the ColorGradient internal elements. | 
| tabindex | 
 | 
 | Sets the  | 
| value | 
 | Sets the value of the selected color. | 
Fields
| Name | Type | Default | Description | 
|---|---|---|---|
| isFocused | 
 | Returns  | 
Events
| Name | Type | Description | 
|---|---|---|
| valueChange | 
 | Fires when the user selects a new color.. | 
Methods
| focus | 
|---|
| Focuses the component. |