2018-05-28 11:50:42 +02:00
|
|
|
<div>
|
2018-10-05 17:00:54 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-select placeholder="Sources" [(ngModel)]="choice" (selectionChange)="selectionChange($event)" [disabled]="viewOnly">
|
|
|
|
<mat-option *ngFor="let option of options" [value]="option.key">
|
|
|
|
{{ option.label }}
|
|
|
|
</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
<div>
|
2018-10-11 13:22:49 +02:00
|
|
|
<app-external-item class="col-md-9" [autoCompleteConfiguration]="autoCompleteConfiguration"
|
|
|
|
[formGroup]="formGroup" [displayFunction]="displayFunction" [placeholder]="placeholder" [subtitleFunction]="subtitleFunction"
|
2018-10-05 17:00:54 +02:00
|
|
|
(onItemChange)="this.onItemChangeFunc($event)" [formCtrl]="formControl" [disabled]="disabled">
|
|
|
|
</app-external-item>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" *ngFor="let suggestion of formGroup['controls']; let i = index">
|
|
|
|
<ng-container *ngTemplateOutlet="parentTemplate; context: { $implicit: suggestion, index: i,function: this.deleteItem.bind(this) }">
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-05-28 11:50:42 +02:00
|
|
|
</div>
|