New to Kendo UI for jQuery? Start a free 30-day trial

Icon

configuration

Specifies an icon name to be used if the avatar type is set to icon. For a list of available icon names, please refer to the Web Font Icons article.

Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

icon

String|Object
<div id="avatar"></div>
<script>
    $("#avatar").kendoAvatar({
        type: "icon",
        icon: "file-config"
    });
</script>

icon.name

String

The name of the SVG icon.

<div id="avatar"></div>
<script>
    $("#avatar").kendoAvatar({
        type: "icon",
        icon: {
            name: "file-config"
        }
    });
</script>

The SVG icon variant. Supported values are outline, solid, and duotone. The variant applies to SVG rendering and is ignored for font icons.

<div id="avatar"></div>
<script>
    $("#avatar").kendoAvatar({
        type: "icon",
        icon: {
            name: "file-config",
            variant: "outline"
        }
    });
</script>