|
1 | 1 | import { Component } from '@angular/core'; |
2 | 2 | import { IgxFilterOptions, IgxInputGroupComponent, IgxPrefixDirective, IgxIconComponent, IgxInputDirective, IgxSuffixDirective, IgxListComponent, IgxListItemComponent, IgxAvatarComponent, IgxListThumbnailDirective, IgxListLineTitleDirective, IgxListLineSubTitleDirective, IgxListActionDirective, IgxRippleDirective, IgxFilterPipe } from 'igniteui-angular'; |
3 | 3 | import { FormsModule } from '@angular/forms'; |
4 | | -import { NgClass } from '@angular/common'; |
5 | 4 |
|
6 | 5 | @Component({ |
7 | 6 | selector: 'app-list-item-selection', |
8 | 7 | templateUrl: './list-item-selection.component.html', |
9 | 8 | styleUrls: ['./list-item-selection.component.scss'], |
10 | | - imports: [IgxInputGroupComponent, IgxPrefixDirective, IgxIconComponent, FormsModule, IgxInputDirective, IgxSuffixDirective, IgxListComponent, IgxListItemComponent, NgClass, IgxAvatarComponent, IgxListThumbnailDirective, IgxListLineTitleDirective, IgxListLineSubTitleDirective, IgxListActionDirective, IgxRippleDirective, IgxFilterPipe] |
| 9 | + imports: [IgxInputGroupComponent, IgxPrefixDirective, IgxIconComponent, FormsModule, IgxInputDirective, IgxSuffixDirective, IgxListComponent, IgxListItemComponent, IgxAvatarComponent, IgxListThumbnailDirective, IgxListLineTitleDirective, IgxListLineSubTitleDirective, IgxListActionDirective, IgxRippleDirective, IgxFilterPipe] |
11 | 10 | }) |
12 | 11 | export class ListItemSelectionComponent { |
13 | 12 | public searchContact: string; |
@@ -55,13 +54,6 @@ export class ListItemSelectionComponent { |
55 | 54 | contact.isFavorite = !contact.isFavorite; |
56 | 55 | } |
57 | 56 |
|
58 | | - public selectItem(item) { |
59 | | - if (!item.selected) { |
60 | | - this.contacts.forEach(c => c.selected = false); |
61 | | - item.selected = true; |
62 | | - } |
63 | | - } |
64 | | - |
65 | 57 | get filterContacts() { |
66 | 58 | const fo = new IgxFilterOptions(); |
67 | 59 | fo.key = 'name'; |
|
0 commit comments