toCssRgba
Returns the color in RGBA notation (includes the opacity).
Returns
String
The color in RGBA notation.
Example
<script>
var color = kendo.parseColor("#ff0000");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(color.toCssRgba()); // logs "rgba(255, 0, 0, 1)"
var transparentColor = kendo.Color.fromRGB(1, 0, 0, 0.5);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(transparentColor.toCssRgba()); // logs "rgba(255, 0, 0, 0.5)"
</script>
In this article