-
16 Feb 2012 9:40 AM #1
Unanswered: Anything wrong with this class ?
Unanswered: Anything wrong with this class ?
I'm always getting the same error Cannot create an instance of unrecognized alias: widget.marketPanelCode:Ext.define('bv2.view.market.Market',{ extend:'Ext.Panel', xtype:'marketPanel', //alias: 'widget.marketPanel', }); var mkPan=Ext.create('Ext.Container', { fullscreen: true, layout: 'vbox', title:'some title', items:[ { xtype: 'label', html: 'London' } /*,{ xtype:'olist', id:'oli', title:'OLIST' } */ ] });
its the last thing stopping me from getting on - these things are cards of a tab bar.
-
16 Feb 2012 10:49 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
- Answers
- 83
The only thing I see wrong is the formatting of your code. I don't even see how you're trying to instantiate the marketPanel class.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
16 Feb 2012 11:06 AM #3
This is how I'm instantiating the class in the parent
Code:items: [ { xtype:'chartPanel', title: _s('Chart'), iconCls: 'chart', layout:'card', }, { xtype:'marketPanel', title: _s('market'), iconCls: 'market', layout:'card', id:'market' },


Reply With Quote