Skip to content

Instantly share code, notes, and snippets.

@wprater
Created August 29, 2012 21:43
Show Gist options
  • Save wprater/3519332 to your computer and use it in GitHub Desktop.
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.
({
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