AvatarBuilder
Defines the fluent API for configuring the Kendo Avatar for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class AvatarBuilder : WidgetBuilderBase<Avatar, AvatarBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Avatar, AvatarBuilder>AvatarBuilder
Implements:
Inherited Members
Constructors
Methods
A text description of the Avatar image. When type="image" is configured this value will be used to populate the alt attribute of the <img> element.
public AvatarBuilder Alt(string value)
The value that configures the alt.
Returns:Specifies whether the avatar should render border around its container element. Default is false.
public AvatarBuilder Border(bool value)
The value that configures the border.
Returns:Adds additional custom classes to the Avatar container element.
public AvatarBuilder ClassName(string value)
The value that configures the classname.
Returns:Specifies the appearance fill style of the Avatar. The available values are "outline", "solid" (default), and null.
public AvatarBuilder FillMode(AvatarFillMode value)
The value that configures the fillmode.
Returns: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.
public AvatarBuilder Icon(Action<AvatarIconSettingsBuilder> configurator)
The action that configures the icon.
Returns: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.
Specifies an image URL or dataURL that would be used to populate the src attribute of the avatar <img> element.
public AvatarBuilder Image(string value)
The value that configures the image.
Returns:Could be one of the predefined shapes available for the widget container: "circle" (default), "small", "medium", "large", or null.
public AvatarBuilder Rounded(Rounded? value)
The value that configures the rounded.
Returns:The Avatar allows you to set predefined sizes. The available size values are "small", "medium" (default), "large", or null.
public AvatarBuilder Size(ComponentSize? value)
The value that configures the size.
Returns:Sets additional CSS styles to the Avatar container element.
public AvatarBuilder Style(IDictionary<string, object> value)
The value that configures the style.
Returns:Will be used to populated Avatar content when its type is set to text
public AvatarBuilder Text(string value)
The value that configures the text.
Returns:The Avatar allows you to specify predefined theme colors for background of its container. The available themeColor values are: - base - Applies base theme color. - primary (Default) - Applies coloring based on primary theme color. - secondary - Applies coloring based on secondary theme color. - tertiary - Applies coloring based on tertiary theme color. - null - Does not apply theme color class.
public AvatarBuilder ThemeColor(AvatarThemeColor? value)
The value that configures the themecolor.
Returns:Could be one of the three predefined types for the widget: icon, image, or text (default).
public AvatarBuilder Type(AvatarType value)
The value that configures the type.
Returns: