ui-selectchange.html 1.1 KB

12345678910111213141516
  1. <ui-select ng-model="person.selected" theme="bootstrap">
  2. <ui-select-match placeholder="">
  3. {{$select.selected.name}}
  4. </ui-select-match>
  5. <ui-select-choices repeat="item in people | filter: $select.search">
  6. <div ng-bind-html="item.name | highlight: $select.search"></div>
  7. <small ng-bind-html="item.email | highlight: $select.search"></small>
  8. <div class="pull-right margin-right-10">
  9. <input type=button class="btn btn-primary btn-o btn-sm" value="修改"
  10. ng-click="setEditId(useritem.account,useritem)">
  11. <input type=button class="btn btn-primary btn-o btn-sm" value="删除"
  12. ng-click="remove(useritem.id)">
  13. <!-- <a ng-click="remove(useritem.id)" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove"><i class="fa fa-times fa fa-white"></i></a> -->
  14. </div>
  15. </ui-select-choices>
  16. </ui-select>