Created
August 29, 2012 21:43
-
-
Save wprater/3519332 to your computer and use it in GitHub Desktop.
Is there another way to apply a filter when specifying the store through a config option.
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
({ | |
xtype: 'list', | |
flex: 1, | |
store: 'localEntriesStore', | |
itemTpl: '{full_name}', | |
listeners: { | |
activate: function(list, opts) { | |
return list.getStore().filterBy(function(rec) { | |
return rec.get('needs_remote_sync'); | |
}); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment