angular ui-select-header - 变通办法?

时间:2016-04-12 14:24:31

标签: angular-ui ui-select angular-ui-select

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

0 个答案:

没有答案