Html Fomantic UI可搜索下拉式元搜索
我使用的是Fomantic UI,我有一个简单的可搜索下拉列表Html Fomantic UI可搜索下拉式元搜索,html,jquery,semantic-ui,fomantic-ui,Html,Jquery,Semantic Ui,Fomantic Ui,我使用的是Fomantic UI,我有一个简单的可搜索下拉列表 <div id="form_selection" class="ui fluid search selection three column dropdown"> <input type="hidden" name="country"> <i class="dropdown icon"></i> <div class="default text">S
<div id="form_selection" class="ui fluid search selection three column dropdown">
<input type="hidden" name="country">
<i class="dropdown icon"></i>
<div class="default text">Select Form</div>
<div class="menu">
<repeat group="{{ @forms }}" value="{{ @form }}">
<div class="item" data-meta="{{ implode(', ', array_column(@form['categories'], 'category')) }}" data-value="{{ @form['uid'] }}">{{ @form['name'] }}</div>
</repeat>
</div>
</div>
这会在我的数据库中的一些行中循环,这会在我的下拉列表中添加一些选项。对于这些值中的每一个,都有一个或多个与之关联的类别
。
正如您所看到的,我有一个名为datameta
的属性。我希望下拉列表中的搜索在其返回()中包含data meta
属性
有没有办法做到这一点
$('#form_selection').dropdown({
ignoreDiacritics: true,
sortSelect: true,
fullTextSearch:'exact'
});