Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Setting the tags
- var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY);
- Inc.allTagGroupsController.set('content', tagGroups);
- // The controller in question
- Inc.editedTagGroupsController = SC.ArrayController.create(
- SC.CollectionViewDelegate, // So we can add / delete rows
- /** @scope Inc.editedTagGroupsController.prototype */ {
- contentBinding: 'Inc.allTagGroupsController.arrangedObjects',
- allowsMultipleSelection: NO,
- etc....
- // The list view
- contentView: SC.ListView.design({
- contentBinding: 'Inc.editedTagGroupsController.arrangedObjects',
- selectionBinding: 'Inc.editedTagGroupsController.selection',
- contentValueKey: "name",
- canEditContent: YES,
- canDeleteContent: YES,
- rowHeight: 21
- })
Add Comment
Please, Sign In to add comment