Skip to content

Instantly share code, notes, and snippets.

@wprater
Created August 29, 2012 21:43
Embed
What would you like to do?
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