]>
Commit | Line | Data |
---|---|---|
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 | [disabled]="disabled" | |
11 | ||
12 | bindLabel="label" | |
13 | bindValue="id" | |
14 | > | |
15 | <ng-template ng-option-tmp let-item="item" let-index="index"> | |
16 | {{ item.label }} | |
17 | <ng-container *ngIf="item.description"> | |
18 | <br> | |
19 | <span [title]="item.description" class="text-muted">{{ item.description }}</span> | |
20 | </ng-container> | |
21 | </ng-template> | |
22 | </ng-select> |