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.

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 kendo.Color object object.

This method does not trigger the "change" event.

Parameters

color String (optional)

Returns

String the string representation of the current color.

Example

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

// set palette value
palette.value("#ccc");

// get palette value
var value = palette.value();
</script>
In this article