Defines the fluent API for configuring ButtonBadgeSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ButtonBadgeSettingsBuilder
Inheritance: objectButtonBadgeSettingsBuilder
Inherited Members
Constructors
public ButtonBadgeSettingsBuilder(ButtonBadgeSettings container)
Properties
protected ButtonBadgeSettings Container { get; }
Methods
Defines the alignment of the badge
public ButtonBadgeSettingsBuilder Align(BadgeAlign value)
The value that configures the align.
Returns:Specifies wether or not to render additional "cutout" border around the badge.
Specifies wether or not to render additional "cutout" border around the badge.
public ButtonBadgeSettingsBuilder CutoutBorder(bool value)
The value for CutoutBorder
Returns:Determines whether the textual content should be rendered as an HTML string or it should be encoded.
public ButtonBadgeSettingsBuilder Encoded(bool value)
The value for Encoded
Returns:Defines how theme colors are applied to a badge
public ButtonBadgeSettingsBuilder Fill(BadgeFill? value)
The value that configures the fill.
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 ButtonBadgeSettingsBuilder Icon(string value)
The value for Icon
Returns:If text is a number, it will cap that number.
public ButtonBadgeSettingsBuilder Max(double value)
The value for Max
Returns:Specifies position of the badge relative to button. Valid position options are: inline, top start, top end, bottom start, bottom end. works in conjunction with badge.placement.
public ButtonBadgeSettingsBuilder Position(BadgePosition value)
The value for Position
Returns:Specifies the shape of the badge. Valid options are: rectangle, rounded, pill, circle, dot.
public ButtonBadgeSettingsBuilder Shape(BadgeShape value)
The value for Shape
Returns:Specifies the size of the badge. Valid options are small, medium and large.
public ButtonBadgeSettingsBuilder Size(BadgeSize? value)
The value for Shape
Returns:The template which renders the content of the badge
public ButtonBadgeSettingsBuilder Template(string value)
The value for Template
Returns:The template which renders the content of the badge
public ButtonBadgeSettingsBuilder Template<TModel>(TemplateBuilder<TModel> template)
The value for Template
Returns:Sets the template handler function name for rendering the badge content.
public ButtonBadgeSettingsBuilder TemplateHandler(string value)
The template handler function name.
Returns:The builder instance.
The template which renders the content of the badge
public ButtonBadgeSettingsBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:The template which renders the content of the badge
public ButtonBadgeSettingsBuilder TemplateView(MvcHtmlString value)
The name of the view for the Template value
Returns:The text of the badge. Valid input includes string, number or object with toString method. Default is empty string.
public ButtonBadgeSettingsBuilder Text(string value)
The value for Text
Returns:Specifies the color of the component. Valid options are inherit, default, primary, secondary, tertiary, info, success, warning, error, dark, light, inverted.
public ButtonBadgeSettingsBuilder ThemeColor(BadgeColor? value)
The value for Color
Returns:If set to false the badge will not be displayed.
public ButtonBadgeSettingsBuilder Visible(bool value)
The value for Visible
Returns: