All files / src/app/shared/components/filter/filter-dropdown filter-dropdown.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 282x                                                      
<div ngbDropdown autoClose="outside">
  <button
    ngbDropdownToggle
    class="form-control"
    role="button"
    id="dropdownMenuLink"
    data-toggle="dropdown"
    aria-haspopup="true"
    aria-expanded="false"
    [attr.title]="placeholder !== filterElement.name ? placeholder : null"
  >
    <span>{{ placeholder }}</span>
  </button>
  <div ngbDropdownMenu aria-labelledby="dropdownMenuLink">
    <button
      *ngFor="let facet of filterElement.facets; trackBy: trackByFn"
      type="button"
      class="dropdown-item btn btn-link btn-link-action"
      [ngClass]="{ selected: facet.selected }"
      (click)="apply(facet)"
    >
      {{ facet.displayName }}
      <ng-container *ngIf="facet.count"> ({{ facet.count }})</ng-container>
      <fa-icon *ngIf="facet.selected" [icon]="['fas', 'check']" class="icon-checked" />
    </button>
  </div>
</div>