Kendo.Mvc.UI.Fluent.BadgeBuilder

Defines the fluent API for configuring the Kendo UI Badge

Methods

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 for Text

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 for Appearance

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

Parameters

value System.String

The value for 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 for Look

Max(System.Double)

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

Parameters

value System.Double

The value for 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 for Overlay

Template(System.String)

The template which renders the content of the badge.

Parameters

value System.String

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

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

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 for 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 for Value

Visible(System.Boolean)

If set to false the badge will not be displayed.

Parameters

value System.Boolean

The value for Visible

Size(Kendo.Mvc.UI.BadgeSize)

Defines the size of the badge

Parameters

value Kendo.Mvc.UI.BadgeSize

The value for Size

Placement(Kendo.Mvc.UI.BadgePlacement)

Defines the badge placement

Parameters

value Kendo.Mvc.UI.BadgePlacement

The value for Placement

Position(Kendo.Mvc.UI.BadgePosition)

Defines the position of the badge

Parameters

value Kendo.Mvc.UI.BadgePosition

The value for Position

Shape(Kendo.Mvc.UI.BadgeShape)

Defines the shape of the badge

Parameters

value Kendo.Mvc.UI.BadgeShape

The value for Shape

Color(Kendo.Mvc.UI.BadgeColor)

Defines the color of the badge

Parameters

value Kendo.Mvc.UI.BadgeColor

The value for Color

BadgeStyle(Kendo.Mvc.UI.BadgeStyle)

Defines the style of the badge

Parameters

value Kendo.Mvc.UI.BadgeStyle

The value for BadgeStyle

In this article
Not finding the help you need?