]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-forms/select/select-options.component.html
Merge branch 'release/3.4.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-forms / select / select-options.component.html
1 <ng-select
2 [items]="items"
3 [groupBy]="groupBy"
4 [(ngModel)]="selectedId"
5 (ngModelChange)="onModelChange()"
6 [clearable]="clearable"
7 [labelForId]="labelForId"
8 [searchable]="searchable"
9 [searchFn]="searchFn"
10
11 bindLabel="label"
12 bindValue="id"
13 >
14 <ng-template ng-option-tmp let-item="item" let-index="index">
15 {{ item.label }}
16 <ng-container *ngIf="item.description">
17 <br>
18 <span [title]="item.description" class="text-muted">{{ item.description }}</span>
19 </ng-container>
20 </ng-template>
21 </ng-select>