[英]How to change Kendo autocomplete filed slimier as Angular material input fields?
我想更改與角材料輸入相同的劍道自動完成字段。
kendo UI自動完成字段如下所示
我想在劍道UI自動完成字段上方更改如下
kendo UI自動完成字段的HTML如下所示
<div class="example-wrapper">
<kendo-autocomplete [data]="listItems" [placeholder]="'e.g. Andorra'">
</kendo-autocomplete>
</div>
素材用戶界面的HTML如下所示。
<mat-form-field class="example-full-width">
<input type="text" placeholder="Groups" matInput [formControl]="queryField">
</mat-form-field>
有可能這樣做嗎?
如果使用劍道,可以在材料設計中包裝劍道組件。
您可以在項目中安裝kendo-theme-material
。
npm install --save @progress/kendo-theme-material
然后在您的angular.json
文件中添加angular.json
kendo-theme-material
路徑。
{
"apps": [
{
"styles": [
"node_modules/@progress/kendo-theme-material/dist/all.css"
]
}
]
}
它將在材質設計中轉換所有劍道組件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.