toHex

Returns a string in "FF0000" form (without a leading #).

Returns

String The color in hex notation.

Example

<script>
var color = kendo.parseColor("#ff0000");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(color.toHex()); // logs "ff0000"
</script>
In this article
toHex
Not finding the help you need?
Contact Support