Skip to main content

getValue()

returns the code of a selected color in the Hex format

getValue(): string;

Returns:

A string with the code of a selected color in the Hex format.

Example

colorpicker.setValue("#BDF0E9");
var color = colorpicker.getValue();// -> "#BDF0E9"