16 lines
720 B
HTML
16 lines
720 B
HTML
<div *ngIf="searchEnabled">
|
|
<mat-form-field>
|
|
<input type="text" placeholder="{{ 'FACET-SEARCH.FILTER' | translate }}" matInput [formControl]="optionSearchControl">
|
|
</mat-form-field>
|
|
</div>
|
|
<mat-chip-list>
|
|
<mat-chip [removable]="removable" (removed)="removeOption(option)" *ngFor="let option of selectedOptions">{{ option }}
|
|
<mat-icon matChipRemove *ngIf="removable">cancel</mat-icon>
|
|
</mat-chip>
|
|
</mat-chip-list>
|
|
<mat-selection-list #optionsList (selectionChange)="selectionChanged($event)">
|
|
<mat-list-option *ngFor="let option of (options | async) | slice:0:10" [value]="displayValue(option)" [selected]="isOptionSelected(option)">
|
|
<p>{{ displayLabel(option) }}</p>
|
|
</mat-list-option>
|
|
</mat-selection-list>
|