admin管理员组文章数量:1426004
I'm using Twitter's Typeahead.js (Not the one included in Bootstrap) and I was wondering if there was a similar function to minLength=0 that exists in Better-Typeahead (Bootstrap)
Triggering on input looked promising, but I don't want there to be any text in the input box when the dropdown is triggered.
I'm using Twitter's Typeahead.js (Not the one included in Bootstrap) and I was wondering if there was a similar function to minLength=0 that exists in Better-Typeahead (Bootstrap)
Triggering on input looked promising, but I don't want there to be any text in the input box when the dropdown is triggered.
Share Improve this question edited May 23, 2017 at 12:28 CommunityBot 11 silver badge asked Jul 2, 2013 at 23:21 MeredithMeredith 4,4845 gold badges36 silver badges58 bronze badges1 Answer
Reset to default 6Yep, Datasets have a minLength
option, see the code here. It's been around since v0.9.1, but it hasn't made its way to the README yet.
Here's how you'd use it:
$('.typeahead').typeahead({
minLength: 3,
local: [/* ... */]
});
本文标签: javascriptTwitter Typeahead min length0 equivalentStack Overflow
版权声明:本文标题:javascript - Twitter Typeahead min length = 0 equivalent? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745392595a2656666.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论