Badge
configurationIf set to true a default overlay badge will be displayed. If set to a string, an ovelay with content set to the specified string will be displayed. Can be set to a JavaScript object which represents the configuration of the Badge widget.
badge
Boolean|String|Number|Objectbadge.align
StringSpecifies alignment of the badge relative to button. Valid position options are: top start, top end, bottom start, bottom end.
badge.align works in conjunction with badge.position.
Default: ''
badge.cutoutBorder
BooleanSpecifies wether or not to render additional "cutout" border around the badge.
Default: false
badge.fillMode
StringSets a value controlling how the color is applied to the badge. When undefined (the default), the theme controls the fill mode. Can also be set to the following string values:
- "solid"
- "outline"
Default: undefined
badge.icon
StringDefines 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.
Default: ''
badge.max
NumberIf text is a number, it will cap that number.
Default: Infinity
badge.position
StringSpecifies position of the badge relative to the edge of the button. Valid placemnt options are: inline, edge, inside, outside.
Note: position configuration, other than inline, requires the badge to be aligned. See badge.align for more details.
Default: 'edge'
badge.shape
StringSpecifies the shape of the badge. Valid options are: rectangle, rounded, pill, circle, dot.
Default: 'rounded'
badge.size
StringSets a value controlling the size of the badge. When undefined (the default), the theme controls the size. Can also be set to the following string values:
- "small"
- "medium"
- "large"
Default: undefined
badge.template
String|FunctionThe template which renders the content of the badge.
badge.text
String|NumberThe text of the badge. Valid input includes string, number or object with toString method. Default is empty string.
Default: ''
badge.themeColor
StringSpecifies the color of the component. Valid options are inherit, default, primary, secondary, tertiary, info, success, warning, error, inverted.
Default: 'secondary'
badge.visible
BooleanIf set to false the badge will not be displayed.
Default: true