23 lines
575 B
HTML
23 lines
575 B
HTML
<ng-select
|
|
[(ngModel)]="selectedOption"
|
|
(ngModelChange)="onChange($event)"
|
|
[disabled]="disabled"
|
|
[placeholder]="placeholder"
|
|
[items]="items"
|
|
(blur)="onBlur()"
|
|
[labelForId]="labelForId"
|
|
[clearable]="false"
|
|
appendTo="body"
|
|
>
|
|
<ng-template ng-option-tmp let-item="item">
|
|
<div class="tw-flex">
|
|
<div class="tw-mr-2 tw-flex-initial">
|
|
<i *ngIf="item.icon != null" class="bwi bwi-fw {{ item.icon }}" aria-hidden="true"></i>
|
|
</div>
|
|
<div class="tw-flex-1">
|
|
{{ item.label }}
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
</ng-select>
|