Created
November 26, 2014 20:45
-
-
Save srsgores/2c149367ba5a3a1f3202 to your computer and use it in GitHub Desktop.
mixin used for checkboxable array
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
CheckboxableArrayMixin = Ember.Mixin.create | |
allSelected: false | |
selectedItems: Ember.computed.filterBy("", "selected", true) | |
selectedItemsCount: Ember.computed.alias("selectedItems.length") | |
isEmpty: Ember.computed.not(@get("model")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment