enable

Enables or disables the widget.

Parameters

enable Boolean (optional)

Whether the widget should be enabled (true) or disabled (false). If not specified, the method will enable the widget.

Example - disable the flat color picker

<div id="flatpicker"></div>
<script>
$("#flatpicker").kendoFlatColorPicker();
var flatpicker = $("#flatpicker").data("kendoFlatColorPicker");
flatpicker.enable(false);
</script>
In this article