【发布时间】:2016-03-09 06:12:31
【问题描述】:
我想将ui-select绑定到<a></a>标签,所以当我们点击这个标签时,它会显示ui-select。
请看下面的演示Plunker DEMO
在演示中,select-ui单独显示,但我想仅在单击以下下拉列表(人,国家/地区)时显示,当我单击人员时显示以下内容用户界面选择。同样,当我单击国家/地区时,它应该显示国家/地区的 ui-select。
应该用下拉框附上,
<ui-select ng-model="country.selected" theme="selectize" ng-disabled="disabled" style="width: 300px;">
<ui-select-match placeholder="Select or search a country in the list...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="country in countries | filter: $select.search">
<span ng-bind-html="country.name | highlight: $select.search"></span>
<small ng-bind-html="country.code | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
我按照Naga Sandeep的建议修改了我的pluncker DEMO,但在选择国家后,我无法再次选择人。
【问题讨论】:
标签: javascript jquery html angularjs jquery-ui