Kendo.Mvc.UI.Badge

Kendo UI Badge component

Fields

urlGenerator

The URL generator.

Properties

Appearance

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

CutoutBorder

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

Icon

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.

Look

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

Max

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

Overlay

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.

Template

The template which renders the content of the badge.

TemplateId

The id for the Template

Text

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

Type

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

Value

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

Visible

If set to false the badge will not be displayed.

Size

Defines the size of the badge

Placement

Defines the badge placement

Position

Defines the position of the badge

Shape

Defines the shape of the badge

Color

Defines the color of the badge

BadgeStyle

Defines the style of the badge

Methods

WriteInitializationScript(System.IO.TextWriter)

Writes the initialization script.

Parameters

writer System.IO.TextWriter

The TextWriter.

WriteHtml(System.Web.UI.HtmlTextWriter)

Writes the HTML.

Parameters

writer System.Web.UI.HtmlTextWriter

The HtmlTextWriter.

In this article
Not finding the help you need?