简体   繁体   English

语义下拉式用户界面

[英]Semantic dropdown ui

Hi I am using Semantic Dropdown UI( https://semantic-ui.com/modules/dropdown.html#search-in-menu ) and I was looking for a way to make searchable dropdown. 嗨,我正在使用语义下拉菜单UI( https://semantic-ui.com/modules/dropdown.html#search-in-menu ),我正在寻找一种使可搜索的下拉菜单成为可能。 They have that kind of feature but the problem is its not a full text search. 它们具有这种功能,但问题在于它不是全文搜索。 It only allows you to search for the start strings. 它仅允许您搜索起始字符串。

On page try to look for the "Multiple Search Selection". 在页面上尝试查找“多个搜索选择”。

I search for "A" 我搜索“ A” 在此处输入图片说明

When I search for "L" I was hoping that "Alabama" "Alaska" will still show up because they have "L" 当我搜索“ L”时,我希望“阿拉巴马州”,“阿拉斯加”仍会显示,因为他们有“ L” 在此处输入图片说明

You can initialize it with the fullTextSearch option. 您可以使用fullTextSearch选项对其进行初始化。

$('.ui.dropdown')
  .dropdown({
    fullTextSearch: true
});

As documented here . 作为记录在这里

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM