Items.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.
items.badge
Boolean|String|Number|Objectitems.badge.align
StringSpecifies position of the badge relative to button. Valid position options are: top start, top end, bottom start, bottom end.
items.badge.align works in conjunction with items.badge.position.
Default: ''
items.badge.cutoutBorder
BooleanSpecifies wether or not to render additional "cutout" border around the badge.
Default: false
items.badge.fill
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
items.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: ''
items.badge.max
NumberIf text is a number, it will cap that number.
Default: Infinity
items.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 items.badge.align for more details.
Default: 'edge'
items.badge.shape
StringSpecifies the shape of the badge.
Valid options are rectangle, rounded, pill, circle, dot.
Default: 'rounded'
items.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
items.badge.template
String|FunctionThe template which renders the content of the badge.
items.badge.text
String|NumberThe text of the badge. Valid input includes string, number or object with toString method. Default is empty string.
Default: ''
items.badge.themeColor
StringSpecifies the color of the component. If undefined (the default), the theme controls the default color.
Valid options are inherit, default, primary, secondary, tertiary, info, success, warning, error, inverted.
Default: undefined
items.badge.visible
BooleanIf set to false the badge will not be displayed.
Default: true