ButtonBadgeSettingsBuilder

Methods

Align(Kendo.Mvc.UI.BadgeAlign)

Defines the alignment of the badge

Parameters

value - BadgeAlign

The value that configures the align.

Fill(System.Nullable)

Defines how theme colors are applied to a badge

Parameters

value - System.Nullable<BadgeFill>

The value that configures the fill.

ThemeColor(System.Nullable)

Specifies the color of the component. Valid options are inherit, default, primary, secondary, tertiary, info, success, warning, error, dark, light, inverted.

Parameters

value - System.Nullable<BadgeColor>

The value for Color

CutoutBorder(System.Boolean)

Specifies wether or not to render additional "cutout" border around the badge.

Parameters

value - System.Boolean

The value for CutoutBorder

CutoutBorder()

Specifies wether or not to render additional "cutout" border around the badge.

Icon(System.String)

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.

Parameters

value - System.String

The value for Icon

Max(System.Double)

If text is a number, it will cap that number.

Parameters

value - System.Double

The value for Max

Position(Kendo.Mvc.UI.BadgePosition)

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.

Parameters

value - BadgePosition

The value for Position

Shape(Kendo.Mvc.UI.BadgeShape)

Specifies the shape of the badge. Valid options are: rectangle, rounded, pill, circle, dot.

Parameters

value - BadgeShape

The value for Shape

Size(System.Nullable)

Specifies the size of the badge. Valid options are small, medium and large.

Parameters

value - System.Nullable<BadgeSize>

The value for Shape

Text(System.String)

The text of the badge. Valid input includes string, number or object with toString method. Default is empty string.

Parameters

value - System.String

The value for Text

Template(System.String)

The template which renders the content of the badge

Parameters

value - System.String

The value for Template

Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

The template which renders the content of the badge

Parameters

template - TemplateBuilder<TModel>

The value for Template

TemplateId(System.String)

The template which renders the content of the badge

Parameters

templateId - System.String

The ID of the template element for Template

TemplateView(System.Web.Mvc.MvcHtmlString)

The template which renders the content of the badge

Parameters

value - System.Web.Mvc.MvcHtmlString

The name of the view for the Template value

TemplateHandler(System.String)

Sets the template handler function name for rendering the badge content.

Parameters

value - System.String

The template handler function name.

RETURNS

The builder instance.

Visible(System.Boolean)

If set to false the badge will not be displayed.

Parameters

value - System.Boolean

The value for Visible