Kendo.Mvc.UI.Avatar
Kendo UI Avatar component
Fields
urlGenerator
The URL generator.
Properties
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
Style
Sets additional CSS styles to the Avatar container element.
FillMode
Specifies the appearance fill style of the Avatar. The available values are "outline", "solid" (default), and null.
Rounded
Could be one of the predefined shapes available for the widget container: "circle" (default), "small", "medium", "large", or null.
Size
The Avatar allows you to set predefined sizes. The available size values are "small", "medium" (default), "large", or null.
ThemeColor
The Avatar allows you to specify predefined theme colors for background of its container. The available themeColor values are: - primary (Default) - Applies coloring based on primary theme color. - base - Applies base theme color. - secondary - Applies coloring based on secondary theme color. - tertiary - Applies coloring based on tertiary theme color. - inherit - Applies inherited coloring value. - info - Applies coloring based on info theme color. - success - Applies coloring based on success theme color. - warning - Applies coloring based on warning theme color. - error - Applies coloring based on error theme color. - dark - Applies coloring based on dark theme color. - light - Applies coloring based on light theme color. - inverse - Applies coloring based on inverted theme color. - null - Does not apply theme color class.
Type
Could be one of the three predefined types for the widget: icon, image, or text (default).
Methods
WriteInitializationScript(System.IO.TextWriter)
Writes the initialization script.
Parameters
writer System.IO.TextWriter
The TextWriter.
WriteHtml(System.Web.UI.HtmlTextWriter)
Writes the HTML.
Parameters
writer System.Web.UI.HtmlTextWriter
The HtmlTextWriter.