Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Input() fieldPreferences: IFieldPreference[];
- <mat-selection-list #list>
- <mat-list-option *ngFor="let preference of fieldPreferences"
- [selected]="preference.selected"
- (click)="showPreferenceChanged(list)"
- [value]="preference.field">
- {{preference.field}}
- </mat-list-option>
- </mat-selection-list>
- <mat-icon tooltip [content]="template">settings</mat-icon>
- <ng-template #template>
- <field-preferences
- [fieldPreferences]="fieldPreferences"
- (selectedFields)="showPreferenceChanged($event)">
- </field-preferences>
- </ng-template>
- <mat-selection-list #list>
- <mat-list-option ngFor let-preference [ngForOf]="fieldPreferences"
- [selected]="preference.selected"
- (click)="showPreferenceChanged(list)"
- [value]="preference.field">
- {{preference.field}}
- </mat-list-option>
- </mat-selection-list>
Add Comment
Please, Sign In to add comment