Guest User

Untitled

a guest
Oct 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. @Input() fieldPreferences: IFieldPreference[];
  2.  
  3. <mat-selection-list #list>
  4. <mat-list-option *ngFor="let preference of fieldPreferences"
  5. [selected]="preference.selected"
  6. (click)="showPreferenceChanged(list)"
  7. [value]="preference.field">
  8. {{preference.field}}
  9. </mat-list-option>
  10. </mat-selection-list>
  11.  
  12. <mat-icon tooltip [content]="template">settings</mat-icon>
  13.  
  14. <ng-template #template>
  15. <field-preferences
  16. [fieldPreferences]="fieldPreferences"
  17. (selectedFields)="showPreferenceChanged($event)">
  18. </field-preferences>
  19. </ng-template>
  20.  
  21. <mat-selection-list #list>
  22. <mat-list-option ngFor let-preference [ngForOf]="fieldPreferences"
  23. [selected]="preference.selected"
  24. (click)="showPreferenceChanged(list)"
  25. [value]="preference.field">
  26. {{preference.field}}
  27. </mat-list-option>
  28. </mat-selection-list>
Add Comment
Please, Sign In to add comment