我看到 ui-select-header ( https://github.com/angular-ui/ui-select/wiki/ui-select-header-and-footer ) 是计划好的,但我真的需要一个解决方法,直到它可用,有什么好主意吗?我想为这样的控件添加一个“全选”按钮:
<ui-select ng-model="address.selected" theme="bootstrap">
<ui-select-match>{{$select.selected.formatted_address}}</ui-select-match>
<ui-select-choices repeat="address in addresses track by $index">
<input type="checkbox" ng-model="address.selected">{{address.formatted_address}}
</ui-select-choices>