stefanocudini/bootstrap-list-filter

Similar to issue #8, itemChild does not work in my case using bootstrap collapsible list group

kevkha opened this issue · 4 comments

Similar to issue #8 in my case itemChild: 'h5, small', does not seem to work. If I use one of them it works like charm. Does itemChild support class as selector? I tried itemChild: '.list-group-item-head, .list-group-item-subhead', without success. Thanks in advance.

<div class="panel list-group" id="mylist">
    <a href="#" class="list-group-item" data-toggle="collapse" data-target="#targetID" data-parent="#dataParent">
        <h5 class="list-group-item-head">Head</h5>
        <span class="list-group-item-subhead"><small>Subhead</small></span>
    </a>
    <div id="targetID" class="sublinks collapse">
        <!-- more code here -->
    </a>
</div>
$('#mylist').btsListFilter('#filterinput', {
    itemChild: 'h5, small',
    resetOnBlur: false,
    initial: false
});

Where do you use it? do you have a public url?

I created an example here http://jsfiddle.net/kevkha/wtyrzv3u/
Try to filter the color name in Head and Subhead. Thanks.

for now this plugin doesn't support multiple child selection ( #23 )
wait for this solution or you can try to implement it.
Stefano

@kevkha do you solve the problem?