简体   繁体   English

打开 Angular Material Autocomplete(mat-autocomplete) 总是在输入下

[英]Open Angular Material Autocomplete(mat-autocomplete) Always Under Input

How can I Open Angular Material Autocomplete(mat-autocomplete) always in bottom of Input?如何始终在 Input 底部打开 Angular Material Autocomplete(mat-autocomplete)? Is there any position config?有没有位置配置? or I must use CSS tricks?或者我必须使用 CSS 技巧?

Try adding the matAutocompletePositionto attribute your input element.尝试添加 matAutocompletePositionto 属性您的输入元素。

<Input matAutocompletePosition="below">

SAMPLE 样本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 角材垫-自动完成打开面板 - angular material mat-autocomplete opens panel 角材料简单垫自动完成不起作用 - Angular Material simple mat-autocomplete not working angular 2 材料 2 中的预填充垫自动完成 - prefill mat-autocomplete in angular 2 material 2 Angular 材料可重复使用 mat-chip-list 与 mat-autocomplete - Angular material reusable mat-chip-list with mat-autocomplete 使用 Angular 材料将 mat-select 转换为 mat-autocomplete - Convert mat-select to mat-autocomplete using Angular Material mat-autoComplete 中的占位符不起作用,如 Angular Material Documentation 中所示 - Placeholder in mat-autoComplete does not work as illustrated in the Angular Material Documentation 在没有ReactiveForm的情况下使用Angular Material mat-autocomplete - Using Angular Material mat-autocomplete without ReactiveForm Angular mat-autocomplete 禁用输入 FormControl 不起作用 - Angular mat-autocomplete disable input FormControl not working Angular mat-autocomplete:如何显示选项名称而不是输入中的值 - Angular mat-autocomplete : How to display the option name and not the value in the input 如何在 FormArray (Reactive Forms) 中使用 mat-autocomplete (Angular Material Autocomplete) - How to use mat-autocomplete (Angular Material Autocomplete) inside FormArray (Reactive Forms)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM