【问题标题】:AngularUI Typeahead: Event if no result is foundAngularUI Typeahead:未找到结果时的事件
【发布时间】:2016-05-17 06:22:41
【问题描述】:

有没有人知道一种方法来检查是否没有结果与输入匹配。或者至少,我可以访问结果数组吗?提前致谢!

【问题讨论】:

    标签: angularjs angular-ui-bootstrap angular-ui-typeahead


    【解决方案1】:

    typeahead-no-results="noResults" 添加到您的输入中

    并将其放在输入下方。

    <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>
    <div ng-show="noResults">
      <i class="glyphicon glyphicon-remove"></i> No Results Found
    </div>
    

    文档:http://angular-ui.github.io/bootstrap/#/typeahead

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-14
      • 1970-01-01
      • 1970-01-01
      • 2014-03-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多