aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/select/select-custom-value.component.html
blob: 5fdf432ffd5dd206924ca7e026dea8c628229777 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div class="root">
  <my-select-options
    [items]="itemsWithCustom"
    [clearable]="clearable"
    [searchable]="searchable"
    [groupBy]="groupBy"
    [labelForId]="labelForId"

    [(ngModel)]="selectedId"
    (ngModelChange)="onModelChange()"
  ></my-select-options>

  <input *ngIf="isCustomValue()" [(ngModel)]="customValue" (ngModelChange)="onModelChange()" type="text" class="form-control" />
</div>