File tree 5 files changed +305
-141
lines changed
material-experimental/mdc-chips
5 files changed +305
-141
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,14 @@ <h4>Unstyled</h4>
21
21
22
22
< h4 > Advanced</ h4 >
23
23
24
- < mat-chip-set selectable ="false ">
25
- < mat-chip color ="accent " selected ="true "> Selected/Colored</ mat-chip >
26
-
27
- < mat-chip color ="warn " selected ="true " *ngIf ="visible "
28
- (destroyed) ="displayMessage('chip destroyed') " (removed) ="toggleVisible() ">
24
+ < mat-chip-list multiple ="true ">
25
+ < mat-chip-option color ="accent " selected ="true "> Selected/Colored</ mat-chip-option >
26
+ < mat-chip-option color ="warn " selected ="true " *ngIf ="visible "
27
+ (destroyed) ="displayMessage('chip destroyed') " (removed) ="toggleVisible() ">
29
28
With Events
30
29
< mat-icon matChipRemove > cancel</ mat-icon >
31
- </ mat-chip >
32
- </ mat-chip-set >
30
+ </ mat-chip-option >
31
+ </ mat-chip-list >
33
32
< div > {{message}}</ div >
34
33
35
34
< h4 > With avatar and icons</ h4 >
Original file line number Diff line number Diff line change 1
1
< div #mdcChipSet
2
- class ="mdc-chip-set "
3
- [class.mdc-chip-set--choice] ="selectable && !multiple "
4
- [class.mdc-chip-set--filter] ="selectable && multiple ">
2
+ class ="mdc-chip-set "
3
+ [ngClass] ="_mdcClasses ">
5
4
< ng-content > </ ng-content >
6
5
</ div >
7
6
You can’t perform that action at this time.
0 commit comments