color
Get or set the selected color. If no argument is given, this returns the currently selected color as a kendo.Color object.
Example
<div id="flatcolorpicker"></div>
<script>
$("#flatcolorpicker").kendoFlatColorPicker();
var flatpicker = $("#flatcolorpicker").data("kendoFlatColorPicker");
// set the color
flatpicker.color("#ff6358");
// get the currently selected color
var selectedColor = flatpicker.color();
console.log(selectedColor.toHex()); // "#ff6358"
</script>Parameters
color kendo.Color (optional)
The color that should be set as the current value
Returns
kendo.Color the current value
In this article