This seems like it will be a no-brainer for an expert, but after too many hours, some help is greatly appreciated.
My app.JS calls this upon launch which works well:
Code:
PerksApp.views.Viewport = Ext.extend(Ext.TabPanel, {
fullscreen: 'true',
layout: 'card',
id: 'perkycards',
tabBar:{
dock:'bottom',
layout: {
pack:'center'
}
},
items: [
{
xtype: 'perksCategories'
},
{
xtype: 'perklistingview'
}
],
});
perksCategories creates a list as shown immediately below with problem in all caps:
Code:
PerksApp.views.PerksCategoryView = new Ext.extend(Ext.Panel, {
//use Ext.emptyFn to clear out any lingering data store instances
perksCategoriesStore: Ext.emptyFn,
layout: 'fit',
title: 'Home',
iconCls: 'home',
styleHtmlContent: true,
initComponent: function(){
var ctrlAction = '';
this.dockedItems=[{
xtype: 'toolbar',
dock: 'top',
title: Community_Name
}],
this.perksCategoryList = new Ext.List({
store: PerksApp.stores.perksCategoriesStore,
id: 'perkcatlist',
itemTpl:'<div class="perks_cat">' + '<tpl for=".">' +
'<img style="vertical-align: middle" src={path}{thumb}/> {thumb}'+
'</tpl>'+
'</div>',
listeners:{
itemtap:function(list,index){
///THIS IS THE PROBLEM AREA- DON'T KNOW WHAT FUNCTION TO USE TO ACTIVATE second item (xtype: 'perklistingview') FROM THE TAB PANEL VIEW ABOVE
}
}
});
})
this.items = [this.perksCategoryList];
PerksApp.views.PerksCategoryView.superclass.initComponent.call(this);
}
});
Ext.reg('perksCategories', PerksApp.views.PerksCategoryView);
Thanks for your help!