aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/select/select-options.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-11 16:07:53 +0200
committerChocobozzz <me@florianbigard.com>2020-08-11 16:18:42 +0200
commit52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4 (patch)
tree887d2b6106548ad23cf016d82baf1977198027d9 /client/src/app/shared/shared-forms/select/select-options.component.html
parent3d25d5de33d8aa0ba00d7514522b25d22bf0e0a1 (diff)
downloadPeerTube-52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4.tar.gz
PeerTube-52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4.tar.zst
PeerTube-52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4.zip
Use ng select for multiselect
Diffstat (limited to 'client/src/app/shared/shared-forms/select/select-options.component.html')
-rw-r--r--client/src/app/shared/shared-forms/select/select-options.component.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-forms/select/select-options.component.html b/client/src/app/shared/shared-forms/select/select-options.component.html
new file mode 100644
index 000000000..48eca1cf5
--- /dev/null
+++ b/client/src/app/shared/shared-forms/select/select-options.component.html
@@ -0,0 +1,19 @@
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>