blob: 48eca1cf542c427627c17b2f2dd6df9a5ced93d1 (
plain) (
tree)
|
|
<ng-select
[items]="items"
[groupBy]="groupBy"
[(ngModel)]="selectedId"
(ngModelChange)="onModelChange()"
[clearable]="clearable"
[searchable]="searchable"
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>
|