]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-forms/select/select-options.component.html
Use ng select for multiselect
[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 [searchable]="searchable"
8
9 bindLabel="label"
10 bindValue="id"
11 >
12 <ng-template ng-option-tmp let-item="item" let-index="index">
13 {{ item.label }}
14 <ng-container *ngIf="item.description">
15 <br>
16 <span [title]="item.description" class="text-muted">{{ item.description }}</span>
17 </ng-container>
18 </ng-template>
19 </ng-select>