如何删除@ng-select/ng-select模块中的ng-select-top

How to remove ng-select-top in @ng-select/ng-select module

如何删除 @ng-select/ng-select 模块中的 ng-select-top

禁用@ng-select/ng-select 模块中的顶部下拉菜单

我想显示@ng-select/ng-select模块中唯一的底部下拉菜单

添加 dropdownPosition="bottom" 这个道具你的 ng-select select 或标签

例如:

<ng-select dropdownPosition="bottom" #summarySearch bindLabel="name" [loading]="typeaheadSearchStatus === 'loading'" (change)="filter()" clearable="true" formControlName="accounts" (focus)="onTypeAheadFocus()" (blur)="onTypeAheadBlur()" [items]="searchList" [markFirst]="false" [multiple]="true" [(ngModel)]="searchModel" typeToSearchText="{{ localeStrings.typeToSearchText }}" placeholder="{{ localeStrings.searchFor }}" (search)="searchBy('searchText',$event)" [typeahead]="typeaheadSearch"> <ng-template ng-label-tmp let-item="item" let-clear="clear"> <span class="search-tag"> <span>{{item.name}}</span> <span (click)="clear(item)">&times;</span> </span> </ng-template> </ng-select>