Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <!-- Available items listed as selections -->
  2. <!-- Note: ng-hide is used for searching purposes -->
  3. <div class="form-group col-md-5">
  4. <select class="form-control" multiple ng-multiple="true" id="dataEventItem"
  5. style="min-height: 200px;"
  6. ng-model="availableItems">
  7. <option ng-repeat="item in availableItems.data | orderBy:['item','company']" value="{{ item._id }}" ng-hide="hideItem(item)">{{ item.product }} {{ item.company }}</option>
  8. </select>
  9. </div>
  10.  
  11. <!-- Items selected in the first select, which is then shown in second select element -->
  12. <div class="form-group col-md-5">
  13. <select class="form-control" multiple ng-multiple="true" id="dataEventAddedItem"
  14. style="min-height: 200px;"
  15. ng-model="addedItems">
  16. <option ng-repeat="item in items | orderBy:['product','company']" value="{{ item._id }}">{{ item.product }} {{ item.company }}</option>
  17. </select>
  18. </div>
  19.  
  20. <!-- To move items from one select to another, I am basicly using splice and push, which is working, except for the empty element present in both <select> forms -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement