BadgeBuilder
Defines the fluent API for configuring the Telerik UI Badge for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class BadgeBuilder : WidgetBuilderBase<Badge, BadgeBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Badge, BadgeBuilder>BadgeBuilder
Implements:
Inherited Members
Constructors
Methods
Defines the alignment of the Badge when it is integrated into a Button.
public BadgeBuilder Align(BadgeAlign value)
The value that configures the Badge alignment.
Returns:Specifies whether or not to render an additional "cutout" border around the Badge.
public BadgeBuilder CutoutBorder(bool value)
The value that enables the border.
Returns:Determines whether the textual content should be rendered as an HTML string or it should be encoded.
public BadgeBuilder Encoded(bool value)
The value that configures the encoded.
Returns:Defines how theme colors are applied to a Badge.
public BadgeBuilder FillMode(BadgeFill value)
The value that configures the fill mode.
Returns:Defines the name for an existing icon in a Kendo UI theme or SVG content. The icon is rendered inside the Badge by a 'span.k-icon' or 'span.k-svg-icon' element.
public BadgeBuilder Icon(string value)
The value that configures the icon.
Returns:If text is a number, it will cap that number.
public BadgeBuilder Max(double value)
The value that configures the max.
Returns:Defines the position of the Badge when it is integrated into a Button.
public BadgeBuilder Position(BadgePosition value)
The value that configures the position.
Returns:Defines the rounded appearance of the Badge.
public BadgeBuilder Rounded(Rounded value)
The value that configures the rounding of the Badge.
Returns:Defines the size of the Badge.
public BadgeBuilder Size(BadgeSize value)
The value that configures the size.
Returns:The template that renders the content of the Badge.
public BadgeBuilder Template(string value)
The value that configures the template.
Returns:The template that renders the content of the Badge.
public BadgeBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:The template that renders the content of the Badge.
public BadgeBuilder TemplateHandler(string value)
The value that configures the template.
Returns:The template that renders the content of the Badge.
public BadgeBuilder TemplateId(string value)
The value that configures the template.
Returns:The template that renders the content of the Badge.
public BadgeBuilder TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:The text of the Badge. The valid input includes a string, number, or object with the 'toString()' method. The default value is an empty string.
public BadgeBuilder Text(float value)
The value for the Text option.
Returns:The text of the Badge. The valid input includes a string, number, or object with the 'toString()' method. The default value is an empty string.
public BadgeBuilder Text(string value)
The value for the Text option.
Returns:Defines the color applied of the Badge.
public BadgeBuilder ThemeColor(BadgeColor value)
The value that configures the theme color.
Returns:If set to 'false', the Badge will not be displayed.
public BadgeBuilder Visible(bool value)
The value that configures the visibility of the Badge.
Returns: