Vendor app Client: Maiora
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

custom-selector.component.html 549 B

123456789101112131415
  1. <div class="selector" [ngStyle]="{'width.px' : 200 }">
  2. <div class="container" (click)="showDropdown = !showDropdown">
  3. <div class="selected-value">
  4. {{ header }}: <span *ngIf="selectedOption"> {{ selectedOption.name }} </span>
  5. </div>
  6. <button>
  7. <i class="icon" [ngClass]="{'ion-md-arrow-dropdown': !showDropdown, 'ion-md-arrow-dropup': showDropdown}"></i>
  8. </button>
  9. </div>
  10. <ul *ngIf="showDropdown">
  11. <li *ngFor="let option of options" (click)="selectedOption = option; showDropdown = false">
  12. {{ option.name }}
  13. </li>
  14. </ul>
  15. </div>