New to Kendo UI for AngularStart a free 30-day trial

Definition

Package:@progress/kendo-drawing

Resolves the color of the specified CSS property of an element to an RGB color string.

Supports standard CSS color formats and relative color functions (e.g., oklch()) by leveraging the browser's CSS parsing capabilities.

Parameters:elementElement

The DOM element whose color is to be resolved.

colorPropstring

The CSS property name (e.g., 'color', 'backgroundColor') whose color is to be resolved.

Returns:

string

The resolved hex color string (e.g., '#ff0000' or '#ff0000aa').

In this article
Definition
Not finding the help you need?
Contact Support