Skip to content

Commit b7c9057

Browse files
committed
Sync with Kendo UI Professional
1 parent 2a0bd2c commit b7c9057

File tree

15 files changed

+1301
-106
lines changed

15 files changed

+1301
-106
lines changed
Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
---
22
title: Appearance
33
page_title: Badge Appearance
4-
description: "Learn how to customize the appearance of the widget Telerik UI Badge HtmlHelper for {{ site.framework }}."
4+
description: "Learn how to customize the appearance of the Telerik UI Badge HtmlHelper for {{ site.framework }}."
55
slug: appearance_badge_aspnetcore
66
position: 2
77
---
88

99
# Badge Appearance
1010

11-
The Badge is used to decorate avatars, navigation menus, as well as, customize template content.
11+
The Badge offers various options that allow you to control its look and feel.
12+
13+
For a complete example, refer to the [Appearance Demo of the Badge](https://demos.telerik.com/{{ site.platform }}/badge/appearance).
14+
15+
## Options
16+
17+
The Badge provides the following methods for styling:
18+
19+
- [`Rounded()`](#rounded)—Specifies the border radius of the component.
20+
- [`ThemeColor()`](#themecolor)—Configures what color will be applied to the component.
21+
- [`Size()`](#size)—Defines the overall size of the component.
22+
- [`FillMode()`](#fillmode)—Creates a solid or an outline Badge.
1223

1324
## Rounded
1425

15-
The `Rounded` property can be configured via the `Rounded` enumeration. The available values are:
26+
The `Rounded` property can be configured through the `Rounded` enumeration. The available values are:
1627

17-
- `Full` (default) — Renders a circle shape badge.
18-
- `Small`Renders an badge with small border radius.
19-
- `Medium`Renders an badge with meduim border radius.
20-
- `Large`Renders an badge with large border radius.
21-
- `None`Renders an badge with no border radius (square badge).
28+
- `Small`—Renders a Badge with a small border radius.
29+
- `Medium` (default)—Renders a Badge with a medium border radius.
30+
- `Large`—Renders a Badge with a large border radius.
31+
- `Full`—Renders a circle shape Badge.
32+
- `None`—Renders a Badge with no border radius (square Badge).
2233

2334
The following example demonstrates the `Rounded` option of the Badge:
2435

@@ -38,90 +49,88 @@ The following example demonstrates the `Rounded` option of the Badge:
3849
```
3950
{% endif %}
4051

41-
## Theme Color
52+
## ThemeColor
4253

43-
The Badge you to specify predefined theme colors.
54+
The `ThemeColor` option controls the color that will be applied to the rendered Badge.
4455

4556
The available `ThemeColor` values are:
4657

47-
- `Primary` (Default)—Applies coloring based on the primary theme color.
48-
- `Base` - Applies base theme color.
49-
- `Secondary`Applies coloring based on the secondary theme color.
50-
- `Tertiary`Applies coloring based on the tertiary theme color.
51-
- `Inherit`Applies the inherited coloring value.
52-
- `Info`Applies coloring based on the info theme color.
53-
- `Success`Applies coloring based on the success theme color.
54-
- `Warning`Applies coloring based on the warning theme color.
55-
- `Error`Applies coloring based on the error theme color.
56-
- `Dark`Applies coloring based on the dark theme color.
57-
- `Light`Applies coloring based on the light theme color.
58-
- `Inverse`Applies coloring based on the inverted theme color.
58+
- `Primary`—Applies coloring based on the primary theme color.
59+
- `Default`—Applies base theme color.
60+
- `Secondary`—Applies coloring based on the secondary theme color.
61+
- `Tertiary`—Applies coloring based on the tertiary theme color.
62+
- `Inherit`—Applies the inherited coloring value.
63+
- `Info`—Applies coloring based on the info theme color.
64+
- `Success`—Applies coloring based on the success theme color.
65+
- `Warning`—Applies coloring based on the warning theme color.
66+
- `Error`—Applies coloring based on the error theme color.
67+
- `Dark`—Applies coloring based on the dark theme color.
68+
- `Light`—Applies coloring based on the light theme color.
69+
- `Inverted`—Applies coloring based on the inverted theme color.
5970

6071
```HtmlHelper
6172
@(Html.Kendo().Badge()
6273
.Name("badge")
6374
.Text("user")
64-
.ThemeColor(ThemeColor.Primary)
75+
.ThemeColor(BadgeColor.Primary)
6576
)
6677
```
6778
{% if site.core %}
6879
```TagHelper
6980
<kendo-badge name="badge"
7081
text="user"
71-
theme-color="ThemeColor.Primary">
82+
theme-color="BadgeColor.Primary">
7283
</kendo-badge>
7384
```
7485
{% endif %}
7586

7687
## Size
7788

78-
The Badge allows you to set predefined or custom sizes. The `Size` property can be configured via the `ComponentSize`enumeration. The available values are:
89+
The `Size` option allows you to set a predefined size for the Badge. The `Size` property can be configured by using the `BadgeSize` enumeration. The available values are:
7990

8091
- `Small`
8192
- `Medium` (Default)
8293
- `Large`
83-
- `None`
8494

8595
```HtmlHelper
8696
@(Html.Kendo().Badge()
8797
.Name("badge")
8898
.Text("JS")
89-
.Size(ComponentSize.Large)
99+
.Size(BadgeSize.Large)
90100
)
91101
```
92102
{% if site.core %}
93103
```TagHelper
94104
<kendo-badge name="badge"
95105
text="JS"
96-
size="ComponentSize.Large">
106+
size="BadgeSize.Large">
97107
</kendo-badge>
98108
```
99109
{% endif %}
100110

101111
## FillMode
102112

103-
The Badge enables you to set styling options and create solid or outline badges by setting the `BadgeFillMode`. The available `BadgeFillMode` values are:
113+
The `FillMode` specifies how the theme colors are applied to the component. The available options are:
104114

105115
- `Solid` (Default)
106116
- `Outline`
107-
- `None`
108117

109118
```HtmlHelper
110119
@(Html.Kendo().Badge()
111120
.Name("badge")
112121
.Text("JS")
113-
.FillMode(BadgeFillMode.Outline)
122+
.FillMode(BadgeFill.Outline)
114123
)
115124
```
116125
{% if site.core %}
117126
```TagHelper
118127
<kendo-badge name="badge"
119128
text="JS"
120-
fill-mode="BadgeFillMode.Outline">
129+
fill-mode="BadgeFill.Outline">
121130
</kendo-badge>
122131
```
123132
{% endif %}
124133

125134
## See Also
126135

127-
* [JavaScript API Reference of the Badge](https://docs.telerik.com/kendo-ui/api/javascript/ui/badge)
136+
* [Badge Client-Side API](https://docs.telerik.com/kendo-ui/api/javascript/ui/badge)

0 commit comments

Comments
 (0)