themeColorString(default: undefined)
Sets a value controlling the theme color for the background of the Avatar container. When undefined (the default), the theme controls the color. Can also be set to the following string values:
- "base" - Applies base theme color.
- "primary" - Applies coloring based on primary theme color.
- "secondary" - Applies coloring based on secondary theme color.
- "tertiary" - Applies coloring based on tertiary theme color.
Example
<div id="avatar"></div>
<script>
$("#avatar").kendoAvatar({
text: "IG",
themeColor: "secondary"
});
</script>