1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Answers
    6
    Vote Rating
    2
    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
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Answers
    102
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      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.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Answers
    6
    Vote Rating
    2
    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'
    	  },

Thread Participants: 1