aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/select-options.component.html
blob: fda0c2c56eb7e4990c940ed6582f9bc57e37a11b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<ng-select
  [items]="items"
  [groupBy]="groupBy"
  [(ngModel)]="selectedId"
  (ngModelChange)="onModelChange()"
  [bindLabel]="bindLabel"
  [bindValue]="bindValue"
  [clearable]="clearable"
  [searchable]="searchable"
>
  <ng-template ng-option-tmp let-item="item" let-index="index">
    {{ item.label }}
    <ng-container *ngIf="item.description">
      <br>
      <span [title]="item.description" class="text-muted">{{ item.description }}</span>
    </ng-container>
  </ng-template>
</ng-select>