New to Telerik UI for ASP.NET Core? Download free 30-day trial

Kendo.Mvc.UI.Avatar

Kendo UI Avatar component

Properties

Style

Sets additional CSS styles to the Avatar container element.

Alt

A text description of the Avatar image. When type="image" is configured this value will be used to populate the alt attribute of the element.

Border

Specifies whether the avatar should render border around its container element. Default is false.

ClassName

Adds additional custom classes to the Avatar container element.

Icon

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.

Image

Specifies an image URL or dataURL that would be used to populate the src attribute of the avatar element.

Text

Will be used to populated Avatar content when its type is set to text

Size

Rounded

Sets a value controlling the border radius.

FillMode

Sets a value controlling how the color is applied.

ThemeColor

Sets the theme color

Type

Sets the type of the avatar.

Methods

WriteHtml(System.IO.TextWriter)

Writes the HTML.

WriteInitializationScript(System.IO.TextWriter)

Writes the initialization script.

Parameters

writer System.IO.TextWriter

The TextWriter.

SerializeSettings

Serialize current instance to Dictionary

In this article
Not finding the help you need?