change
Triggers when a new color has been selected.
Event Data
e.value String
The value of the ColorGradient.
Example - subscribe to the "change" event during initialization
<div id="colorgradient"></div>
<script>
$("#colorgradient").kendoColorGradient({
change: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("The newly selected color is ", e.value);
}
});
</script>
Example - subscribe to the "change" event after initialization
<div id="colorgradient"></div>
<script>
function picker_change(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("The newly selected color is ", e.value);
}
$("#colorgradient").kendoColorGradient();
var colorgradient = $("#colorgradient").data("kendoColorGradient");
colorgradient.bind("change", picker_change);
</script>