Kendo.Mvc.UI.Fluent.ButtonGroupItemBadgeBuilder

Defines the fluent API for configuring ButtonGroupItemBadgeBuilder

Methods

Appearance(System.String)

Specifies the shape of the badge - rectangle or pill.

Parameters

value System.String

The value for Appearance

BadgeStyle(Kendo.Mvc.UI.BadgeStyle)

Specifies the structure of a badge. Valid options are solid (default) and outline.

Parameters

value Kendo.Mvc.UI.BadgeStyle

The value for BadgeStyle

Color(Kendo.Mvc.UI.BadgeColor)

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

Parameters

value Kendo.Mvc.UI.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

Overlay(System.Boolean)

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

Parameters

value System.Boolean

The value for Overlay

Placement(Kendo.Mvc.UI.BadgePlacement)

Specifies position of the badge relative to the edge of the button. Valid placemnt options are: edge, inside, outside.Note: placement configuration requires the badge to be positioned. See items.badge.position for more details.

Parameters

value Kendo.Mvc.UI.BadgePlacement

The value for Placement

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 items.badge.placement.

Parameters

value Kendo.Mvc.UI.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 Kendo.Mvc.UI.BadgeShape

The value for Shape

Size(Kendo.Mvc.UI.BadgeSize)

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

Parameters

value Kendo.Mvc.UI.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

Look(System.String)

Specifies the look of the badge - flat or outlined.

Parameters

value System.String

The value for Look

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

Type(System.String)

Specifies the type of the badge - primary, secondary, info, success, warning and error.

Parameters

value System.String

The value for Type

Value(System.String)

The value of the badge

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

In this article
Not finding the help you need?