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
ButtonBadgeSettingsBuilder method.
public ButtonBadgeSettingsBuilder(ButtonBadgeSettings container)
Properties
Gets the settings being configured.
protected ButtonBadgeSettings Container { get; }
Methods
Specifies alignment of the badge relative to button. Valid position options are: top start, top end, bottom start, bottom end. works in conjunction with badge.position.
public ButtonBadgeSettingsBuilder Align(BadgeAlign value)
The value for Align
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
Specifies wether or not to render additional "cutout" border around the badge.
public ButtonBadgeSettingsBuilder CutoutBorder()
Returns the current ButtonBadgeSettingsBuilder instance.
Specifies wether or not to render additional "cutout" border around the badge.
public ButtonBadgeSettingsBuilder CutoutBorder(bool value)
The value for CutoutBorder
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
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:Returns the current ButtonBadgeSettingsBuilder instance.
Sets a value controlling how the color is applied to the badge. When undefined (the default), the theme controls the fill mode. Can also be set to the following string values: "solid" or "outline".
public ButtonBadgeSettingsBuilder FillMode(BadgeFill value)
The value for FillMode
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
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.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ButtonBadgeSettingsBuilder Icon(Action<ButtonBadgeIconSettingsBuilder> configurator)
The ButtonBadgeIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of ButtonBadgeSettingsBuilder .
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.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ButtonBadgeSettingsBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of ButtonBadgeSettingsBuilder .
If text is a number, it will cap that number.
public ButtonBadgeSettingsBuilder Max(double value)
The value for Max
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
Specifies position of the badge relative to the edge of the button. Valid placemnt options are: inline, edge, inside, outside.Note: position configuration, other than inline, requires the badge to be aligned. See badge.align for more details.
public ButtonBadgeSettingsBuilder Position(BadgePosition value)
The value for Position
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
Specifies the rounding of the badge. When undefined (the default), the theme controls the default border radius. Valid options are small, medium, large and full.
public ButtonBadgeSettingsBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
Sets a value controlling the size of the badge. When undefined (the default), the theme controls the size. Can also be set to the following string values: "small"; "medium" or "large".
public ButtonBadgeSettingsBuilder Size(BadgeSize value)
The value for Size
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
The template which renders the content of the badge.
public ButtonBadgeSettingsBuilder Template(string value)
The value for Template
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
The template which renders the content of the badge.
public ButtonBadgeSettingsBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
The template which renders the content of the badge.
public ButtonBadgeSettingsBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
The template which renders the content of the badge.
public ButtonBadgeSettingsBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
The template which renders the content of the badge.
public ButtonBadgeSettingsBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
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:Returns the current ButtonBadgeSettingsBuilder instance.
Specifies the color of the component. Valid options are inherit, default, primary, secondary, tertiary, info, success, warning, error, inverted.
public ButtonBadgeSettingsBuilder ThemeColor(BadgeColor value)
The value for ThemeColor
Returns:Returns the current ButtonBadgeSettingsBuilder instance.
If set to false the badge will not be displayed.
public ButtonBadgeSettingsBuilder Visible(bool value)
The value for Visible
Returns:Returns the current ButtonBadgeSettingsBuilder instance.