Threaded View

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    29
    Answers
    2
    Vote Rating
    0
    jerrysolomon is on a distinguished road

      0  

    Default Answered: DataView inside of other containers

    Answered: DataView inside of other containers


    Hi. Noob here. Trying to create a tab panel app, with each panel containing a dataview. I've got the dataview working, grabbing json data from a .ashx handler and can render the dataview to the viewport. I've got the dataview in a separate js file in the view folder. However, I can't seem to find the right syntax to incorporate the dataview as an item in the tab panel (defined in a separate view js file). I've tried every combo I can think up as Ext. create and xtype. Any help would be greatly appreciated!
    Thanks.

  2. Code:
    Ext.define("Sencha.view.Main", {
        extend: 'Ext.tab.Panel',
        xtype: 'main',
     requires: 'Sencha.view.DView1',
        config: {
            tabBarPosition: 'bottom',
       items: [  
       //Ext.create('Sencha.view.DView2'),     
               {
                    title: 'Welcome',
                    iconCls: 'home',
        xtype: 'dview1' 
               },
                     {
                    title: 'Get Started',
                    iconCls: 'action',
                    html: 'another tab'
                }
            ]   
        }
    });

Thread Participants: 1

Tags for this Thread