【发布时间】:2026-02-13 21:45:01
【问题描述】:
我在 angular.js 应用程序中将 selectize 主题应用于我的 ui-select 时遇到问题。我按照这里的说明进行操作 - https://github.com/angular-ui/ui-select 。这似乎很容易,但我无法显示输入,
演示 - http://plnkr.co/edit/TFKeMTCNVuginJ31IH80?p=preview
<ui-select multiple ng-model="multipleDemo.colors" theme="selectize" ng-disabled="disabled" style="width: 300px;">
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match> <!-- WHERE IS THE INPUT? -->
<ui-select-choices repeat="color in availableColors | filter:$select.search">
{{color}}
</ui-select-choices>
那是我从 ui-select 分叉出来的演示。如您所见,输入未显示。 我在这里想念什么?
【问题讨论】:
-
你有带模板的文件夹吗?
标签: angularjs angular-ui ui-select2