You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="highlight">[The Angular Chip component]({environment:angularApiUrl}/classes/igxchipcomponent.html) is a visual element that displays information in an oval container. The component has various properties - it can be templated, deleted, and selected. Multiple chips can be reordered and visually connected to each other, using the chip area as a container.</p>
9
+
<pclass="highlight">The Angular Chip component is a visual element that displays information in an oval container. The component has various properties - it can be templated, deleted, and selected. Multiple chips can be reordered and visually connected to each other, using the chip area as a container.</p>
@@ -124,82 +123,17 @@ public chipRemoved(event: IBaseChipEventArgs) {
124
123
125
124
### Dragging
126
125
127
-
Dragging can be enabled by setting the [`draggable`]({environment:angularApiUrl}/classes/igxchipcomponent.html#removable) input to `true`. When enabled, you can click and drag the chip around.
126
+
Dragging can be enabled by setting the [`draggable`]({environment:angularApiUrl}/classes/igxchipcomponent.html#draggable) input to `true`. When enabled, you can click and drag the chip around.
128
127
129
128
```html
130
129
<igx-chip*ngFor="let chip of chipList"[id]="chip.id"[draggable]="true">
131
-
<igx-iconigxPrefix>{{chip.icon}}</igx-icon>
132
-
{chip.text}}
133
-
</igx-chip>
134
-
```
135
-
136
-
>[!NOTE]
137
-
>To reorder the chips you need to handle the event using the [`IgxChipsAreaComponent`]({environment:angularApiUrl}/classes/igxchipsareacomponent.html).
138
-
139
-
<divclass="divider"></div>
140
-
141
-
**To create the demo sample, we will use the features above:**
142
-
143
-
```html
144
-
<igx-chip
145
-
*ngFor="let chip of chipList"
146
-
[id]="chip.id"
147
-
[selectable]="true"
148
-
[removable]="true"
149
-
(remove)="chipRemoved($event)"
150
-
>
151
130
<igx-iconigxPrefix>{{chip.icon}}</igx-icon>
152
131
{{chip.text}}
153
132
</igx-chip>
154
133
```
155
134
156
-
Then, we need to add the `chipList` and the function, that handles the [`remove`]({environment:angularApiUrl}/classes/igxchipcomponent.html#remove) event:
>To reorder the chips you can handle the event using the [`IgxChipsAreaComponent`]({environment:angularApiUrl}/classes/igxchipsareacomponent.html). More about it could be found in [`Reorder Chips section`](chip.md#reorder-chips).
203
137
204
138
### Chip Templates
205
139
@@ -266,6 +200,71 @@ You can customize the `remove icon`, using the [`removeIcon`]({environment:angul
266
200
</ng-template>
267
201
```
268
202
203
+
<divclass="divider"></div>
204
+
205
+
### Demo
206
+
207
+
To create the demo sample below, we will use the features above:
208
+
209
+
```html
210
+
<igx-chip
211
+
*ngFor="let chip of chipList"
212
+
[id]="chip.id"
213
+
[selectable]="true"
214
+
[removable]="true"
215
+
(remove)="chipRemoved($event)"
216
+
>
217
+
<igx-iconigxPrefix>{{chip.icon}}</igx-icon>
218
+
{{chip.text}}
219
+
</igx-chip>
220
+
```
221
+
222
+
Then, we need to add the `chipList` and the function, that handles the [`remove`]({environment:angularApiUrl}/classes/igxchipcomponent.html#remove) event:
The [`IgxChipsAreaComponent`]({environment:angularApiUrl}/classes/igxchipsareacomponent.html) is used when handling more complex scenarios that require interaction between chips (dragging, selection, navigation, etc.).
0 commit comments