fifeflyer69
18 Jun 2012, 6:53 AM
Is there any way to pass a parameter to the tree store load method, which can then be accessible in a load event handler?
For example (using the MVC pattern):
Ext.define('Example.controller.MyController', {
init: function() {
this.control({
'mytreepanel': {
load: function(store, node, records, success, options) {
// Do something with the custom parameter...
}
}
}
},
loadLists: function() {
var store = this.getListsStore();
store.load({
customParam: true
});
}
}
Any pointers in the right direction appreciated.
For example (using the MVC pattern):
Ext.define('Example.controller.MyController', {
init: function() {
this.control({
'mytreepanel': {
load: function(store, node, records, success, options) {
// Do something with the custom parameter...
}
}
}
},
loadLists: function() {
var store = this.getListsStore();
store.load({
customParam: true
});
}
}
Any pointers in the right direction appreciated.