setBackgroundColor

sets a new background color for the contrast tool.

Parameters

color String|kendo.Color

The new background color.

Example

<div id="colorpicker"></div>
<script>
$("#colorpicker").kendoColorPicker({
  contrastTool: {
    backgroundColor: "#ffffff"
  }
});

var colorpicker = $("#colorpicker").data("kendoColorPicker");
colorpicker.setBackgroundColor("#ff0000");
</script>
In this article