Edit this page

value String |Color (default: null)

Get or set the selected color. If no argument is given, this returns the currently selected color as a string in format #FFFFFF when the opacity option is off, or rgba(255, 255, 255, 1) when opacity is requested.

If one argument is given, it selects the new color and updates the UI. The argument can be a string in hex, rgb or rgba format, or a Color object. This does not trigger the "change" event.

Parameters

color String (optional)

Returns

String the string representation of the current color.

Example

<div id="flatpicker"></div>
<script>
$("#flatpicker").kendoFlatColorPicker();
var flatpicker = $("#flatpicker").data("kendoFlatColorPicker");

// set picker value
flatpicker.value("#ccc");

// get picker value
var value = flatpicker.value();
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy