blob: 3b17612559fd0e6b6d7896f7b415d5d058bfec45 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<ng-select
[items]="items"
[groupBy]="groupBy"
[(ngModel)]="selectedId"
(ngModelChange)="onModelChange()"
[clearable]="clearable"
[labelForId]="labelForId"
[searchable]="searchable"
[searchFn]="searchFn"
bindLabel="label"
bindValue="id"
>
<ng-template ng-option-tmp let-item="item" let-index="index">
{{ item.label }}
<ng-container *ngIf="item.description">
<br>
<span [title]="item.description" class="text-muted">{{ item.description }}</span>
</ng-container>
</ng-template>
</ng-select>
|