Ext.define('apikeygen.store.Clients', {
extend: 'Ext.data.Store',
alias: 'store.Clients',
requires: ['CCC.model.Client',
'CCC.util.ActorContext'],
storeId: 'ClientsStore',
model: 'CCC.model.Client',
proxy: {
type: 'ajax',
url: '/services/clients',
reader: {
type: 'json',
root: 'clients.client'
}
extraParams : {
token : dynamica value ----------------> How to set this value dynamically
}
}
});
I have a store like the above in Extjs . How to set the token value dynamically ?
i have the "token" value in Context i can access that value like : ActorContext.getToken();
how to assign that ActorContext.getToken(); to "token" param in Extjs store.