15 lines
834 B
HTML
15 lines
834 B
HTML
<div [formGroup]="form">
|
|
<mat-form-field>
|
|
<input matInput [matAutocomplete]="auto" formControlName="value" [required]="required">
|
|
<mat-progress-spinner matSuffix mode="indeterminate" *ngIf="loading" [diameter]="22"></mat-progress-spinner>
|
|
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="this.optionSelected($event)">
|
|
<mat-option *ngFor="let item of filteredItems " [value]="item">
|
|
<span *ngIf="titleKey">{{item[titleKey]}}</span>
|
|
<span *ngIf="subtitleKey">{{item[subtitleKey]}}</span>
|
|
</mat-option>
|
|
<!-- <mat-option *ngIf="filteredItems.length == 0" value="das">
|
|
<span>{{'GENERAL.AUTOCOMPLETE.NO-ITEMS' | translate}}</span>
|
|
</mat-option> -->
|
|
</mat-autocomplete>
|
|
</mat-form-field>
|
|
</div> |