style Object

Sets additional CSS styles to the Avatar container element.

Example

<div id="avatar"></div>
<script>
    $("#avatar").kendoAvatar({
        text: "MG",
        style: {
            "background-color": "red"
        }
    });
</script>
In this article