Kendo.Mvc.UI.Fluent.BadgeBuilder

Defines the fluent API for configuring the Kendo Badge for ASP.NET MVC.

Methods

Appearance(System.String)

Deprecated! Use badge.options.shape instead.For compatibility badge.options.appearance maps to badge.options.shape.

Parameters

value System.String

The value that configures the appearance.

CutoutBorder(System.Boolean)

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

Parameters

value System.Boolean

The value that configures the cutoutborder.

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.See web font icons help article for more details on Kendo UI icons.

Parameters

value System.String

The value that configures the icon.

Look(System.String)

Deprecated! Use badge.options.badgeStyle instead.For compatibility badge.options.look maps to badge.options.badgeStyle.

Parameters

value System.String

The value that configures the look.

Max(System.Double)

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

Parameters

value System.Double

The value that configures the max.

Overlay(System.Boolean)

Deprecated! Use position instead.There is no built in mapping between overlay and position: overlay: false can be achieved by setting position: "inline" or overlay: true can be achieved by setting position: "top end", or not setting it at all.. For compatibility overlay is kept, even though it has no effect on the badge.

Parameters

value System.Boolean

The value that configures the overlay.

Template(System.String)

The template which renders the content of the badge.

Parameters

value System.String

The value that configures the template.

TemplateId(System.String)

The template which renders the content of the badge.

Parameters

value System.String

The value that configures the template.

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 that configures the text.

Type(System.String)

Deprecated! Use badge.options.color instead.For compatibility badge.options.type maps to badge.options.color.

Parameters

value System.String

The value that configures the type.

Value(System.String)

Deprecated! Use badge.options.text instead.For compatibility badge.options.value maps to badge.options.text.

Parameters

value System.String

The value that configures the value.

Visible(System.Boolean)

If set to false the badge will not be displayed.

Parameters

value System.Boolean

The value that configures the visible.

Size(Kendo.Mvc.UI.BadgeSize)

Defines the size of the badge

Parameters

value Kendo.Mvc.UI.BadgeSize

The value that configures the size.

Placement(Kendo.Mvc.UI.BadgePlacement)

Defines the badge placement

Parameters

value Kendo.Mvc.UI.BadgePlacement

The value that configures the placement.

Position(Kendo.Mvc.UI.BadgePosition)

Defines the position of the badge

Parameters

value Kendo.Mvc.UI.BadgePosition

The value that configures the position.

Shape(Kendo.Mvc.UI.BadgeShape)

Defines the shape of the badge

Parameters

value Kendo.Mvc.UI.BadgeShape

The value that configures the shape.

Color(Kendo.Mvc.UI.BadgeColor)

Defines the color of the badge

Parameters

value Kendo.Mvc.UI.BadgeColor

The value that configures the color.

BadgeStyle(Kendo.Mvc.UI.BadgeStyle)

Defines the style of the badge

Parameters

value Kendo.Mvc.UI.BadgeStyle

The value that configures the badgestyle.

Text(System.Single)

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

Parameters

value System.Single

The value that configures the text.

In this article
Not finding the help you need?