目前我有一個文本字段,可以在其中過濾手風琴標題的內容以及內容。當我打字時,我會喜歡它,如果有巧合,手風琴將會擴展,但是巧合的是手風琴應該關閉。我該怎麼做?開放式手風琴。 Angular.js
https://jsfiddle.net/3e9arqqe/
<input type="text" placeholder="Search" ng-model="search.pregunta">
<uib-accordion close-others="true">
<div ng-repeat="faq in faqs | filter: search.pregunta">
<div class="col-sm-11" >
<div uib-accordion-group class="panel-default" is-open="faq.open">
<uib-accordion-heading >
<span ng-click="ignoreClick($event);" ><a href='' click-to-edit item="faq" ng-model='faq.pregunta' typeinput='textarea' >{{faq.pregunta}}</a></span> <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': faq.open, 'glyphicon-chevron-right': !faq.open}"></i>
</uib-accordion-heading>
<span click-to-edit item="faq" ng-model="faq.respuesta" >{{faq.respuesta}}</span>
</div>
</div>
</div>
</ui/div>
</div>
</uib-accordion>
你想要的手風琴不匹配露面暈倒,沒有得到過濾掉? – CodeWarrior
@CodeWarrior當他們重新出現時,他們應該好像關閉 – velez11