1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Vote Rating
    2
    Answers
    6
    landed is on a distinguished road

      0  

    Question Unanswered: Anything wrong with this class ?

    Unanswered: Anything wrong with this class ?


    Code:
    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'
    			}
    			*/
    			]
    });
    I'm always getting the same error Cannot create an instance of unrecognized alias: widget.marketPanel

    its the last thing stopping me from getting on - these things are cards of a tab bar.

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,170
    Vote Rating
    32
    Answers
    83
    jay@moduscreate.com is just really nice jay@moduscreate.com is just really nice jay@moduscreate.com is just really nice jay@moduscreate.com is just really nice

      0  

    Default


    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.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Vote Rating
    2
    Answers
    6
    landed is on a distinguished road

      0  

    Default


    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'
    	  },