getValue

returns the code of a selected color

string getValue();

Returns

stringthe code of a selected color in the Hex format

Example

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

See also
Back to top