I have store which use direct proxy to get data from api, but how i can make it work for asynchronous apis? How I can implement callback function using direct function? ?
Store:
Ext.define('Audit.store.TaskList', {
extend: 'Ext.data.Store',
requires: [
'Audit.model.Task',
'Audit.api.TaskAPI'
],
config: {
model: 'Audit.model.Task'
},
proxy: {
type: 'direct',
directFn: Audit.api.TaskAPI.getTasks
}
});