我知道可以为 ui bootstrap typeahead 中的每一行设置自己的模板。但是,如果可用选项多于例如 5 个,我找不到任何方法在末尾添加“更多结果...”文本。当选项数为 5 个或更少时,文本不应该可见。
是否有可能或者我必须检查另一个库?
最佳答案
当我使用 Bootstrap Tagsinput 和 Typehead.js 时,我也遇到了问题。我修改了Bootstrap Tagsinput JS文件中的第41行。
this.placeholderText = element.hasAttribute('placeholder') ? this.$element.attr('placeholder') : "更多结果...";
关于javascript - 将 "more results..."文本添加到 ui bootstrap typeahead,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31402716/