我看到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>