I have a panel
that dynamically I can add as items a Grid, Chart, etc.
Any of those "Widgets
" (grid, chart, etc.) have a store
.
My
panel
has a "refresh tool
" thatonRefreshClick
I want to reload the "Widget"store
.
In my main Controller I have:
onRefreshClick: function (tool) {
console.log('refresh widget store');
var me = this,
panel = tool.up('panel');
// here I want to access the store of the child item.
// So I can do:
/*
widgetStore.load();
*/
},
I won't know if it's widget is a grid, chart, dataview, etc? So I just have to get the store of the child component.
Any clue on how can I achieve this?