Skip to content

Commit b342946

Browse files
authored
Merge pull request #3799 from syncfusion-content/ES-935084-Chips
934883: Test and resolve issues in UG all sections - ASP core MVC Chips control.
2 parents 5263427 + eb9d3d1 commit b342946

File tree

27 files changed

+212
-164
lines changed

27 files changed

+212
-164
lines changed

ej2-asp-core-mvc/chips/EJ2_ASP.MVC/getting-started.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ publishingplatform: ##Platform_Name##
88
documentation: ug
99
---
1010

11-
# Getting Started with ASP.NET MVC Chip Control
11+
# Getting Started with ASP.NET MVC Chips Control
1212

13-
This section briefly explains about how to include [ASP.NET MVC Chip](https://www.syncfusion.com/aspnet-mvc-ui-controls/chips) control in your ASP.NET MVC application using Visual Studio.
13+
This section briefly explains about how to include [ASP.NET MVC Chips](https://www.syncfusion.com/aspnet-mvc-ui-controls/chips) control in your ASP.NET MVC application using Visual Studio.
1414

1515
## Prerequisites
1616

@@ -38,7 +38,7 @@ N> Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET MVC controls are ava
3838

3939
## Add namespace
4040

41-
Add **Syncfusion.EJ2** namespace reference in `Web.config` under `Views` folder.
41+
Add **Syncfusion.EJ2** namespace reference in `Web.config` under **Views** folder.
4242

4343
```
4444
<namespaces>
@@ -48,7 +48,7 @@ Add **Syncfusion.EJ2** namespace reference in `Web.config` under `Views` folder.
4848

4949
## Add stylesheet and script resources
5050

51-
Here, the theme and script is referred using CDN inside the `<head>` of `~/Pages/Shared/_Layout.cshtml` file as follows,
51+
Here, the theme and script is referred using CDN inside the `<head>` of **~/Pages/Shared/_Layout.cshtml** file as follows,
5252

5353
{% tabs %}
5454
{% highlight cshtml tabtitle="~/_Layout.cshtml" %}
@@ -68,7 +68,7 @@ N> Checkout the [Themes topic](https://ej2.syncfusion.com/aspnetmvc/documentatio
6868

6969
## Register Syncfusion<sup style="font-size:70%">&reg;</sup> script manager
7070

71-
Also, register the script manager `EJS().ScriptManager()` at the end of `<body>` in the `~/Pages/Shared/_Layout.cshtml` file as follows.
71+
Also, register the script manager `EJS().ScriptManager()` at the end of `<body>` in the **~/Pages/Shared/_Layout.cshtml** file as follows.
7272

7373
{% tabs %}
7474
{% highlight cshtml tabtitle="~/_Layout.cshtml" %}
@@ -82,9 +82,9 @@ Also, register the script manager `EJS().ScriptManager()` at the end of `<body>`
8282
{% endhighlight %}
8383
{% endtabs %}
8484

85-
## Add ASP.NET MVC Chip control
85+
## Add ASP.NET MVC Chips control
8686

87-
Now, add the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET MVC Chip control in `~/Home/Index.cshtml` page.
87+
Now, add the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET MVC Chips control in **~/Home/Index.cshtml** page.
8888

8989
{% tabs %}
9090
{% highlight cshtml tabtitle="CSHTML" %}
@@ -94,8 +94,8 @@ Now, add the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET MVC Chip c
9494
{% endhighlight %}
9595
{% endtabs %}
9696

97-
Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to run the app. Then, the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET MVC Chip control will be rendered in the default web browser.
97+
Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to run the app. Then, the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET MVC Chips control will be rendered in the default web browser.
9898

99-
![ASP.NET MVC Chip Control](images/chip.png)
99+
![ASP.NET MVC Chips Control](images/chip.png)
100100

101101
N> [View Sample in GitHub](https://github.com/SyncfusionExamples/ASP-NET-MVC-Getting-Started-Examples/tree/main/Chip/ASP.NET%20MVC%20Razor%20Examples).

ej2-asp-core-mvc/chips/EJ2_ASP.NETCORE/getting-started.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Getting Started with ##Platform_Name## Chips Control
3+
title: Getting Started with ##Platform_Name## Chips Control | Syncfusion
44
description: Checkout and learn about getting started with ##Platform_Name## Chips control of Syncfusion Essential JS 2 and more details.
55
platform: ej2-asp-core-mvc
66
control: Getting Started
@@ -37,7 +37,8 @@ Install-Package Syncfusion.EJ2.AspNet.Core -Version {{ site.releaseversion }}
3737
N> Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core controls are available in [nuget.org.](https://www.nuget.org/packages?q=syncfusion.EJ2) Refer to [NuGet packages topic](https://ej2.syncfusion.com/aspnetcore/documentation/nuget-packages) to learn more about installing NuGet packages in various OS environments. The Syncfusion.EJ2.AspNet.Core NuGet package has dependencies, [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) for JSON serialization and [Syncfusion.Licensing](https://www.nuget.org/packages/Syncfusion.Licensing/) for validating Syncfusion<sup style="font-size:70%">&reg;</sup> license key.
3838

3939
## Add Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Tag Helper
40-
Open `~/Pages/_ViewImports.cshtml` file and import the `Syncfusion.EJ2` TagHelper.
40+
41+
Open **~/Pages/_ViewImports.cshtml** file and import the `Syncfusion.EJ2` TagHelper.
4142

4243
{% tabs %}
4344
{% highlight C# tabtitle="~/_ViewImports.cshtml" %}
@@ -49,7 +50,7 @@ Open `~/Pages/_ViewImports.cshtml` file and import the `Syncfusion.EJ2` TagHelpe
4950

5051
## Add stylesheet and script resources
5152

52-
Here, the theme and script is referred using CDN inside the `<head>` of `~/Pages/Shared/_Layout.cshtml` file as follows,
53+
Here, the theme and script are referred to using CDN inside the `<head>` of **~/Pages/Shared/_Layout.cshtml** file as follows,
5354

5455
{% tabs %}
5556
{% highlight cshtml tabtitle="~/_Layout.cshtml" %}
@@ -71,7 +72,7 @@ N> Checkout the [Adding Script Reference](https://ej2.syncfusion.com/aspnetcore/
7172

7273
## Register Syncfusion<sup style="font-size:70%">&reg;</sup> Script Manager
7374

74-
Also, register the script manager `<ejs-script>` at the end of `<body>` in the ASP.NET Core application as follows.
75+
Also, register the script manager `<ejs-scripts>` at the end of `<body>` in the ASP.NET Core application as follows.
7576

7677
{% tabs %}
7778
{% highlight cshtml tabtitle="~/_Layout.cshtml" %}
@@ -87,7 +88,7 @@ Also, register the script manager `<ejs-script>` at the end of `<body>` in the A
8788

8889
## Add ASP.NET Core Chips control
8990

90-
Now, add the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Chips tag helper in `~/Pages/Index.cshtml` page.
91+
Now, add the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Chips tag helper in **~/Pages/Index.cshtml** page.
9192

9293
{% tabs %}
9394
{% highlight cshtml tabtitle="CSHTML" %}

ej2-asp-core-mvc/chips/accessibility.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ documentation: ug
1212

1313
## Keyboard interaction
1414

15-
The following shortcut keys are used to access the Chip control without any interruption.
15+
The following shortcut keys are used to access the Chips control without interruption.
1616

1717
| Keyboard shortcuts | Actions |
1818
|------------|-------------------|
19-
| <kbd>Enter</kbd> | Selects the targeted chip from the ChipList/ChipCollection. |
20-
| <kbd>Delete</kbd> | Deletes the targeted chip from the ChipList/ChipCollection. |
19+
| <kbd>Enter</kbd> | Selects the targeted Chips from the ChipList/ChipCollection. |
20+
| <kbd>Delete</kbd> | Deletes the targeted Chips from the ChipList/ChipCollection. |
2121

2222
{% if page.publishingplatform == "aspnet-core" %}
2323

ej2-asp-core-mvc/chips/customization.md

Lines changed: 50 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ publishingplatform: ##Platform_Name##
88
documentation: ug
99
---
1010

11-
# Chip Customization in Chip Control
11+
# Chips Customization in Chips Control
1212

13-
This section explains the customization of styles, leading icons, avatar, and trailing icons in Chip control.
13+
This section explains the customization of styles, leading icons, avatars, and trailing icons in the Chips control.
1414

1515
## Styles
1616

17-
The Chip control has the following predefined styles that can be defined using the `cssClass` property.
17+
{% if page.publishingplatform == "aspnet-core" %}
18+
19+
The Chips control has the following predefined styles that can be defined using the [`cssClass`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_CssClass) property.
1820

1921
| Class | Description |
2022
| -------- | -------- |
21-
| e-primary | Represents a primary chip. |
22-
| e-success | Represents a positive chip. |
23-
| e-info | Represents an informative chip. |
24-
| e-warning | Represents a chip with caution. |
25-
| e-danger | Represents a negative chip. |
26-
27-
{% if page.publishingplatform == "aspnet-core" %}
23+
| e-primary | Represents a primary Chips. |
24+
| e-success | Represents a positive Chips. |
25+
| e-info | Represents an informative Chips. |
26+
| e-warning | Represents a Chips with caution. |
27+
| e-danger | Represents a negative Chips. |
2828

2929
{% tabs %}
3030
{% highlight cshtml tabtitle="CSHTML" %}
@@ -34,6 +34,16 @@ The Chip control has the following predefined styles that can be defined using t
3434

3535
{% elsif page.publishingplatform == "aspnet-mvc" %}
3636

37+
The Chips control has the following predefined styles that can be defined using the [`cssClass`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Buttons.ChipList.html#Syncfusion_EJ2_Buttons_ChipList_CssClass) property.
38+
39+
| Class | Description |
40+
| -------- | -------- |
41+
| e-primary | Represents a primary Chips. |
42+
| e-success | Represents a positive Chips. |
43+
| e-info | Represents an informative Chips. |
44+
| e-warning | Represents a Chips with caution. |
45+
| e-danger | Represents a negative Chips. |
46+
3747
{% tabs %}
3848
{% highlight razor tabtitle="CSHTML" %}
3949
{% include code-snippet/chips/styles/razor %}
@@ -44,14 +54,14 @@ The Chip control has the following predefined styles that can be defined using t
4454
{% endtabs %}
4555
{% endif %}
4656

47-
57+
![ASP.NET Styles Chips Control](images/styles.png)
4858

4959
## Leading Icon
5060

51-
You can add and customize the leading icon of chip using the `leadingIconCss` property.
52-
5361
{% if page.publishingplatform == "aspnet-core" %}
5462

63+
You can add and customize the leading icon of Chips using the [`leadingIconCss`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_LeadingIconCss) property.
64+
5565
{% tabs %}
5666
{% highlight cshtml tabtitle="CSHTML" %}
5767
{% include code-snippet/chips/leadingIcon/tagHelper %}
@@ -60,6 +70,8 @@ You can add and customize the leading icon of chip using the `leadingIconCss` pr
6070

6171
{% elsif page.publishingplatform == "aspnet-mvc" %}
6272

73+
You can add and customize the leading icon of Chips using the [`leadingIconCss`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Buttons.ChipList.html#Syncfusion_EJ2_Buttons_ChipList_LeadingIconCss) property.
74+
6375
{% tabs %}
6476
{% highlight razor tabtitle="CSHTML" %}
6577
{% include code-snippet/chips/leadingIcon/razor %}
@@ -70,14 +82,14 @@ You can add and customize the leading icon of chip using the `leadingIconCss` pr
7082
{% endtabs %}
7183
{% endif %}
7284

73-
85+
![ASP.NET Leading Icon Chips Control](images/leading-icon.png)
7486

7587
## Avatar
7688

77-
You can add and customize the avatar of chip using the `avatarIconCss` property.
78-
7989
{% if page.publishingplatform == "aspnet-core" %}
8090

91+
You can add and customize the avatar of Chips using the [`avatarIconCss`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_AvatarIconCss) property.
92+
8193
{% tabs %}
8294
{% highlight cshtml tabtitle="CSHTML" %}
8395
{% include code-snippet/chips/avatar/tagHelper %}
@@ -86,6 +98,8 @@ You can add and customize the avatar of chip using the `avatarIconCss` property.
8698

8799
{% elsif page.publishingplatform == "aspnet-mvc" %}
88100

101+
You can add and customize the avatar of Chips using the [`avatarIconCss`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Buttons.ChipList.html#Syncfusion_EJ2_Buttons_ChipList_AvatarIconCss) property.
102+
89103
{% tabs %}
90104
{% highlight razor tabtitle="CSHTML" %}
91105
{% include code-snippet/chips/avatar/razor %}
@@ -96,14 +110,14 @@ You can add and customize the avatar of chip using the `avatarIconCss` property.
96110
{% endtabs %}
97111
{% endif %}
98112

99-
113+
![ASP.NET Avatar Chips Control](images/avatar.png)
100114

101115
## Avatar Content
102116

103-
You can add and customize the avatar content of chip using the `avatarText` property.
104-
105117
{% if page.publishingplatform == "aspnet-core" %}
106118

119+
You can add and customize the avatar content of Chips using the [`avatarText`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_AvatarText) property.
120+
107121
{% tabs %}
108122
{% highlight cshtml tabtitle="CSHTML" %}
109123
{% include code-snippet/chips/avatarText/tagHelper %}
@@ -112,6 +126,8 @@ You can add and customize the avatar content of chip using the `avatarText` prop
112126

113127
{% elsif page.publishingplatform == "aspnet-mvc" %}
114128

129+
You can add and customize the avatar content of Chips using the [`avatarText`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Buttons.ChipList.html#Syncfusion_EJ2_Buttons_ChipList_AvatarText) property.
130+
115131
{% tabs %}
116132
{% highlight razor tabtitle="CSHTML" %}
117133
{% include code-snippet/chips/avatarText/razor %}
@@ -122,14 +138,14 @@ You can add and customize the avatar content of chip using the `avatarText` prop
122138
{% endtabs %}
123139
{% endif %}
124140

125-
141+
![ASP.NET Avatar content Chips Control](images/avatar-content.png)
126142

127143
## Trailing Icon
128144

129-
You can add and customize the trailing icon of chip using the `trailingIconCss` property.
130-
131145
{% if page.publishingplatform == "aspnet-core" %}
132146

147+
You can add and customize the trailing icon of Chips using the [`trailingIconCss`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_TrailingIconCss) property.
148+
133149
{% tabs %}
134150
{% highlight cshtml tabtitle="CSHTML" %}
135151
{% include code-snippet/chips/trailing/tagHelper %}
@@ -138,6 +154,8 @@ You can add and customize the trailing icon of chip using the `trailingIconCss`
138154

139155
{% elsif page.publishingplatform == "aspnet-mvc" %}
140156

157+
You can add and customize the trailing icon of Chips using the [`trailingIconCss`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Buttons.ChipList.html#Syncfusion_EJ2_Buttons_ChipList_TrailingIconCss) property.
158+
141159
{% tabs %}
142160
{% highlight razor tabtitle="CSHTML" %}
143161
{% include code-snippet/chips/trailing/razor %}
@@ -150,12 +168,12 @@ You can add and customize the trailing icon of chip using the `trailingIconCss`
150168

151169

152170

153-
## Outline Chip
154-
155-
Outline chip has the border with the background transparent. It can be set using the `cssClass` property.
171+
## Outline Chips
156172

157173
{% if page.publishingplatform == "aspnet-core" %}
158174

175+
Outline Chips have a border with a transparent background. It can be set using the [`cssClass`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_CssClass) property.
176+
159177
{% tabs %}
160178
{% highlight cshtml tabtitle="CSHTML" %}
161179
{% include code-snippet/chips/outline/tagHelper %}
@@ -164,6 +182,8 @@ Outline chip has the border with the background transparent. It can be set using
164182

165183
{% elsif page.publishingplatform == "aspnet-mvc" %}
166184

185+
Outline Chips have a border with a transparent background. It can be set using the [`cssClass`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Buttons.ChipList.html#Syncfusion_EJ2_Buttons_ChipList_CssClass) property.
186+
167187
{% tabs %}
168188
{% highlight razor tabtitle="CSHTML" %}
169189
{% include code-snippet/chips/outline/razor %}
@@ -174,11 +194,13 @@ Outline chip has the border with the background transparent. It can be set using
174194
{% endtabs %}
175195
{% endif %}
176196

197+
![ASP.NET Outline Chips Control](images/outline-chip.png)
198+
177199
## Template
178200

179201
{% if page.publishingplatform == "aspnet-core" %}
180202

181-
The [`Template`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_Template) property of the Chips control allows users to fully customize the layout and design of each chip. By using the `Template` property, users can include custom HTML elements, such as links, icons, or additional content.
203+
The [`Template`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_Template) property of the Chips control allows users to fully customize the layout and design of each Chips. By using the `Template` property, users can include custom HTML elements such as links, icons, or additional content.
182204

183205
{% tabs %}
184206
{% highlight cshtml tabtitle="CSHTML" %}
@@ -188,7 +210,7 @@ The [`Template`](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.bu
188210

189211
{% elsif page.publishingplatform == "aspnet-mvc" %}
190212

191-
The [`Template`](https://help.syncfusion.com/cr/aspnetmvc-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_Template) property of the Chips control allows users to fully customize the layout and design of each chip. By using the `Template` property, users can include custom HTML elements, such as links, icons, or additional content.
213+
The [`Template`](https://help.syncfusion.com/cr/aspnetmvc-js2/syncfusion.ej2.buttons.chiplist.html#Syncfusion_EJ2_Buttons_ChipList_Template) property of the Chips control allows users to fully customize the layout and design of each Chips. By using the `Template` property, users can include custom HTML elements such as links, icons, or additional content.
192214

193215
{% tabs %}
194216
{% highlight razor tabtitle="CSHTML" %}
@@ -200,5 +222,6 @@ The [`Template`](https://help.syncfusion.com/cr/aspnetmvc-js2/syncfusion.ej2.but
200222
{% endtabs %}
201223
{% endif %}
202224

225+
![ASP.NET template Chips Control](images/template.png)
203226

204227
N> [View Sample in GitHub](https://github.com/SyncfusionExamples/ASP-NET-Core-UG-Examples/tree/main/Chips/ChipsSample).
27 KB
Loading
3.15 KB
Loading
7.16 KB
Loading
2.62 KB
Loading
3.92 KB
Loading
2.85 KB
Loading
2.21 KB
Loading
7.16 KB
Loading
4.91 KB
Loading
4.76 KB
Loading
7.16 KB
Loading

ej2-asp-core-mvc/chips/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
3-
title: Overview in ##Platform_Name## Chips Component
4-
description: Learn here all about Overview in Syncfusion ##Platform_Name## Chips component of Syncfusion Essential JS 2 and more.
3+
title: Overview in ##Platform_Name## Chips Control | Syncfusion
4+
description: Learn here all about Overview in Syncfusion ##Platform_Name## Chips control of Syncfusion Essential JS 2 and more.
55
platform: ej2-asp-core-mvc
66
control: Index
77
publishingplatform: ##Platform_Name##
@@ -10,4 +10,4 @@ documentation: ug
1010

1111
# Overview
1212

13-
The chip is a small block of essential information that triggers an event on click action. It contains the text, image, or both and mostly used in contacts, mails, or filter tags.
13+
The Chips is a small block of essential information that triggers an event on click action. It contains the text, image, or both and mostly used in contacts, mails, or filter tags.

0 commit comments

Comments
 (0)