toCss

Like toHex, but includes a leading #.

Returns

String The color in CSS notation.

Example

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