New to Kendo UI for Angular? Start a free 30-day trial
ActiveColorClickEvent
Fires when you click the left side of the ColorPicker wrapper. The event triggers whether you set a ColorPicker icon or not.
Provides information about the current active color and lets you prevent the popup from opening.
typescript
@Component({
selector: 'my-app',
template: `
<kendo-colorpicker
[icon]="'edit-tools'"
[value]="'#900'"
(activeColorClick)="onColorClick($event)"
>
</kendo-colorpicker>
`
})
class AppComponent {
public onColorClick(event: ActiveColorClickEvent): void {
event.preventOpen();
}
}
Name | Type | Default | Description |
---|---|---|---|
color? |
|
Represents the current value of the ColorPicker. |
Methods
isOpenPrevented | ||||
---|---|---|---|---|
Returns | ||||
|
preventOpen |
---|
Prevents the popup from opening. |