siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
19 lines (17 loc) • 416 B
JavaScript
Ext.define('AddressBook.store.Contacts', {
extend: 'Ext.data.Store',
config: {
model: 'AddressBook.model.Contact',
autoLoad: true,
sorters: 'firstName',
grouper: {
groupFn: function(record) {
return record.get('lastName')[0];
}
},
proxy: {
type: 'ajax',
url: 'contacts.json'
}
}
});