Guest User

Untitled

a guest
May 28th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1.  
  2.  
  3. // Setting the tags
  4.  
  5. var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY);
  6. Inc.allTagGroupsController.set('content', tagGroups);
  7.  
  8.  
  9. // The controller in question
  10.  
  11. Inc.editedTagGroupsController = SC.ArrayController.create(
  12. SC.CollectionViewDelegate, // So we can add / delete rows
  13. /** @scope Inc.editedTagGroupsController.prototype */ {
  14.  
  15. contentBinding: 'Inc.allTagGroupsController.arrangedObjects',
  16. allowsMultipleSelection: NO,
  17. etc....
  18.  
  19.  
  20.  
  21. // The list view
  22.  
  23. contentView: SC.ListView.design({
  24. contentBinding: 'Inc.editedTagGroupsController.arrangedObjects',
  25. selectionBinding: 'Inc.editedTagGroupsController.selection',
  26. contentValueKey: "name",
  27.  
  28. canEditContent: YES,
  29. canDeleteContent: YES,
  30.  
  31. rowHeight: 21
  32. })
Add Comment
Please, Sign In to add comment