aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/select-options.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-forms/select-options.component.html')
-rw-r--r--client/src/app/shared/shared-forms/select-options.component.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-forms/select-options.component.html b/client/src/app/shared/shared-forms/select-options.component.html
new file mode 100644
index 000000000..fda0c2c56
--- /dev/null
+++ b/client/src/app/shared/shared-forms/select-options.component.html
@@ -0,0 +1,18 @@
1<ng-select
2 [items]="items"
3 [groupBy]="groupBy"
4 [(ngModel)]="selectedId"
5 (ngModelChange)="onModelChange()"
6 [bindLabel]="bindLabel"
7 [bindValue]="bindValue"
8 [clearable]="clearable"
9 [searchable]="searchable"
10>
11 <ng-template ng-option-tmp let-item="item" let-index="index">
12 {{ item.label }}
13 <ng-container *ngIf="item.description">
14 <br>
15 <span [title]="item.description" class="text-muted">{{ item.description }}</span>
16 </ng-container>
17 </ng-template>
18</ng-select>