Skip to content

Commit 5d0d4cb

Browse files
993136: Add events UG Documentation for Chip components
1 parent 7429c05 commit 5d0d4cb

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

blazor/chip/events.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ This section explains the list of events of the Chip component which will be tri
1313

1414
## Created
1515

16-
`Created` event triggers when the Chip component rendering is completed.
17-
16+
The `Created` event triggers when the Chip component rendering is completed.
1817

1918
```cshtml
2019
@using Syncfusion.Blazor.Buttons
@@ -37,10 +36,9 @@ This section explains the list of events of the Chip component which will be tri
3736
```
3837
## Deleted
3938

40-
`Deleted`event triggers when a chip item is deleted.
39+
The `Deleted` event triggers when a chip item is deleted.
4140

4241
```cshtml
43-
4442
@using Syncfusion.Blazor.Buttons
4543
4644
<SfChip Selection="SelectionType.Multiple" EnableDelete="true">
@@ -62,12 +60,10 @@ This section explains the list of events of the Chip component which will be tri
6260
```
6361
## Destroyed
6462

65-
`Destroyed` event triggers when the Chip component is disposed.
63+
The `Destroyed` event triggers when the Chip component is disposed.
6664

6765
```cshtml
68-
69-
70-
using Syncfusion.Blazor.Buttons
66+
@using Syncfusion.Blazor.Buttons
7167
7268
<SfChip Selection="SelectionType.Multiple" Destroyed="@OnDestroyed">
7369
<ChipItems>
@@ -87,16 +83,14 @@ using Syncfusion.Blazor.Buttons
8783
```
8884
## OnBeforeClick
8985

90-
`OnBeforeClick` event triggers before a chip is clicked.
86+
The `OnBeforeClick` event triggers before a chip is clicked.
9187

9288
```cshtml
93-
94-
9589
@using Syncfusion.Blazor.Buttons
9690
9791
<SfChip Selection="SelectionType.Multiple">
9892
<ChipItems>
99-
ChipItem Text="Small"></ChipItem>
93+
<ChipItem Text="Small"></ChipItem>
10094
<ChipItem Text="Medium"></ChipItem>
10195
<ChipItem Text="Large"></ChipItem>
10296
<ChipItem Text="Extra Large"></ChipItem>
@@ -114,10 +108,9 @@ using Syncfusion.Blazor.Buttons
114108

115109
## OnClick
116110

117-
`OnClick` event triggers when a chip is clicked.
111+
The `OnClick` event triggers when a chip is clicked.
118112

119113
```cshtml
120-
121114
@using Syncfusion.Blazor.Buttons
122115
123116
<SfChip Selection="SelectionType.Multiple">
@@ -139,10 +132,9 @@ using Syncfusion.Blazor.Buttons
139132
```
140133
## OnDelete
141134

142-
`OnDelete` event triggers before removing the chip.
135+
The `OnDelete` event triggers before removing the chip.
143136

144137
```cshtml
145-
146138
@using Syncfusion.Blazor.Buttons
147139
148140
<SfChip Selection="SelectionType.Multiple" EnableDelete="true">
@@ -161,14 +153,12 @@ using Syncfusion.Blazor.Buttons
161153
// Write your code here
162154
}
163155
}
164-
165156
```
166157
## SelectionChanged
167158

168-
`SelectionChanged` event triggers when the selected chips are changed.
159+
The `SelectionChanged` event triggers when the selected chips are changed.
169160

170161
```cshtml
171-
172162
@using Syncfusion.Blazor.Buttons
173163
174164
<SfChip Selection="SelectionType.Multiple">
@@ -181,13 +171,12 @@ using Syncfusion.Blazor.Buttons
181171
<ChipEvents SelectionChanged="@OnSelectionChanged"></ChipEvents>
182172
</SfChip>
183173
184-
@ {
174+
@code {
185175
private void OnSelectionChanged(SelectionChangedEventArgs args)
186176
{
187177
// Write your code here
188178
}
189179
}
190-
191180
```
192181

193182

0 commit comments

Comments
 (0)