You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
905 B
HTML
16 lines
905 B
HTML
<div class="auto-complete">
|
|
<mat-form-field>
|
|
<input matInput type="text" [placeholder]="placeholder" [formControl]="textFormCtrl" [matAutocomplete]="auto" [required]="required"
|
|
[errorStateMatcher]="this">
|
|
<mat-error *ngIf="validationErrorString">{{validationErrorString}}</mat-error>
|
|
<mat-error *ngIf="formCtrl && formCtrl.hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
<mat-progress-spinner matSuffix mode="indeterminate" *ngIf="loading" [diameter]="22"></mat-progress-spinner>
|
|
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFunction" (optionSelected)="this.optionSelected($event)">
|
|
<mat-option *ngFor="let option of options" [value]="option">
|
|
{{ this.printText(option) }} |
|
|
<small *ngIf="_subtitleFn">{{subtitleFn(option)}}</small>
|
|
</mat-option>
|
|
</mat-autocomplete>
|
|
</mat-form-field>
|
|
</div>
|