AngiJS中的Ui bootstrap typeahead footer“Show More”

时间:2017-09-05 10:46:31

标签: html css angularjs twitter-bootstrap

如果在我的项目中包含typeAhead,最多15个结果,我添加了一个以“显示更多”作为文本的页脚。

enter image description here

但是当我点击页脚时,总会有结果的最后一项被选中,所以当我点击“显示更多”时,它会选择最后一项并将其放入typeAhead。

这是我的自定义模板

<script type="text/ng-template" id="typeahead-item.html">
        <div class="typeahead-group-header" ng-if="match.model.firstInGroup">{{match.model.objectType}}</div>
        <a>
            {{match.label}}
        </a>

        <div class="typeahead-group-footer" ng-show="index == 14"><a href="/#!/showmore?objecttype={{match.model.objectType}}" ng-click="selected=''">Show More</a></div>       

</script>

因此,当我点击显示更多时,我不希望选择一个项目,

0 个答案:

没有答案