angular - Angular - mat-autocomplete 到 mat-select-search
问题描述
<mat-form-field>
<mat-label>ce Type</mat-label>
<input placeholder="Select type" matInput formControlName="e_id" [matAutocomplete]="cotype">
<mat-autocomplete #cotype="matAutocomplete" [displayWith]="displayFn">
<mat-option *ngIf="isLoading" class="is-loading">Loading...</mat-option>
<ng-container *ngIf="!isLoading">
<mat-option *ngFor="let ce of ceList" [value]="ce.id">
{{ce.name}}
</mat-option>
</ng-container>
</mat-autocomplete>
</mat-form-field>
如何将我的可搜索下拉列表更改为 mat-select-search....
解决方案
推荐阅读
- python - Django Teamplate 选项卡不显示
- react-native - 错误:已为此容器注册了另一个导航器。您可能在单个“NavigationContainer”或“Screen”下有多个导航器
- asp.net-core - Serilog dotnet core function app 和 sql sink
- javascript - WordPress:JS 已加载,但其中的功能不起作用
- linux - 如何在 kali linux 上安装 pip2 和 pip3?
- excel - Azure 逻辑应用获取目标工作表行值
- spring - 好奇docker-compose和dockerfile的使用
- image - 将 html 转换为 odt 或 docx 时嵌入图像
- sql - Oracle - 如何处理函数错误并返回 null
- node.js - Node.js 和 Oracle DB 选择查询在行中获取空数组