Threaded View

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Vote Rating
    jerrysolomon is on a distinguished road


    Default 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!

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

Thread Participants: 1

Tags for this Thread