]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-forms/select/select-custom-value.component.html
Allow configuration to be static/readonly (#4315)
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-forms / select / select-custom-value.component.html
1 <div class="root">
2 <my-select-options
3 [items]="itemsWithCustom"
4 [clearable]="clearable"
5 [searchable]="searchable"
6 [groupBy]="groupBy"
7 [labelForId]="labelForId"
8 [disabled]="disabled"
9
10 [(ngModel)]="selectedId"
11 (ngModelChange)="onModelChange()"
12 ></my-select-options>
13
14 <ng-container *ngIf="isCustomValue()">
15 <input [(ngModel)]="customValue" (ngModelChange)="onModelChange()" [type]="inputType" class="form-control" />
16
17 <span *ngIf="inputSuffix" class="input-suffix">{{ inputSuffix }}</span>
18 </ng-container>
19 </div>