BadgeTagHelper
Example
Razor
<kendo-badge>
</kendo-badge>
Attributes
| Attribute | Type | Description |
|---|---|---|
| name | String | Sets the name of the component. |
| as-module | Boolean | Specifies whether the initialization script of the component will be rendered as a JavaScript module. |
| is-in-client-template | Boolean | When placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute. |
| align | BadgeAlign | Defines the alignment of the badge |
| deferred | Boolean | Suppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method. |
| cutout-border | Boolean | Specifies whether or not to render additional "cutout" border around the badge. |
| fill-mode | BadgeFill | Defines how theme colors are applied to a badge |
| icon | 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.See web font icons help article for more details on Kendo UI icons. |
| max | Double | If text is a number, it will cap that number. |
| position | BadgePosition | Defines the position of the badge |
| rounded | Rounded | Defines the shape of the badge |
| script-attributes | IDictionary<String,Object> | Sets the attributes that will be added to the script tag of the component's initialization script. |
| size | BadgeSize | Defines the size of the badge |
| template | String | The template which renders the content of the badge. |
| template-handler | String | The 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-id | String | The template which renders the content of the badge. This option expects the ID of the script element that contains the template. |
| template-view | IHtmlContent | The template which renders the content of the badge. This option expects the instance containing the created HTML. |
| text | String | The text of the badge. Valid input includes string, number or object with toString method. Default is empty string. |
| theme-color | BadgeColor | Defines the color of the badge |
| visible | Boolean | If set to false the badge will not be displayed. |