Created
July 17, 2014 00:15
-
-
Save jakecraige/053049d07ba7b6eedbc3 to your computer and use it in GitHub Desktop.
ember checkboxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkedItems: Ember.computed.mapBy(‘proxiedCheckedItems’, ‘content’); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxiedCheckedItems: Ember.computed.filterBy(‘proxiedModel’, ‘checked’, true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxiedModel: Ember.computed.map(‘model’, function(model) { | |
return Ember.ObjectProxy.create({ | |
content: model, | |
checked: false | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment