ButtonGroupItemBadgeSettingsTagHelper

Example

Razor
<badge/>

Attributes

AttributeTypeDescription
alignBadgeAlignSpecifies the badge position relative to the button. Valid position options are: TopStart, TopEnd, BottomStart, BottomEnd. Works in conjunction with items.badge.position.
cutout-borderBooleanSpecifies wether or not to render additional "cutout" border around the badge.
enabledBooleanEnables or disables the configuration.
fillBadgeFillSpecifies the structure of a badge. Valid options are Solid (default) and Outline.
iconStringDefines 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.
maxDoubleIf text is a number, it will cap that number.
positionBadgePositionSpecifies the badge position relative to the edge of the button. Valid placement options are: Inline, Edge, Inside, Outside. Note: position configuration, other than inline requires the badge to be aligned. See items.badge.align for more details.
shapeBadgeShapeSpecifies the shape of the badge. Valid options are Rectangle, Rounded, Pill, Circle, Dot.
sizeBadgeSizeSpecifies the size of the badge. Valid options are Small, Medium and Large.
templateStringThe template which renders the content of the badge.
template-handlerStringThe template which renders the content of the badge. This option expects the name of a JavaScript function that will be called to return the template.
template-idStringThe template which renders the content of the badge. This option expects the ID of the script element that contains the template.
template-viewIHtmlContentThe template which renders the content of the badge. This option expects the instance containing the created HTML.
textStringThe text of the badge. Valid input includes string, number or object with toString method. Default is empty string.
theme-colorBadgeColorSpecifies the color of the component. Valid options are Inherit, Default, Primary, Secondary, Tertiary, Info, Success, Warning, Error, Dark, Light, Inverted.
visibleBooleanIf set to false the badge will not be displayed.
In this article
ExampleAttributes
Not finding the help you need?
Contact Support