【发布时间】:2017-06-13 03:42:17
【问题描述】:
我已经内置了 ng2-bootstrap 的 Typeahead 组件,但我需要在点击时下拉该字段。不幸的是,下拉组件不支持这一点。是否有任何选项(我看过,但找不到)可以让您像这样下拉 Typeahead 组件?好像它使用 Typeahead 和空字符串搜索?
我应该提到我已经尝试了typeaheadMinLength 选项,它允许在退格后显示完整列表,但不是焦点。
当前代码:
<input [(ngModel)]='filters.itemFilter' [typeahead]='items' typeaheadOptionField='name' typeaheadMinLength='0' class="form-control" placeholder='Items'/>
任何帮助将不胜感激。
【问题讨论】:
标签: angular typescript ng2-bootstrap