1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    1
    Vote Rating
    0
    jackeychen is on a distinguished road

      0  

    Default Problem when display navigation.View in tab.Panle

    Problem when display navigation.View in tab.Panle


    I created home view like it:

    Code:
    Ext.define("tnews.view.Home", {
        extend: "Ext.tab.Panel",
        alias: "widget.tnewshome",
        requires: ["tnews.view.Landing", "Ext.TitleBar"],
        config: {
            tabBarPosition: "bottom",
            fullscreen: true,
            tabBar: {
                docked: "bottom"
            },
            items: [
                {
                    title: "home",
                    iconCls: "home",
                    items: {
                        xtype:"titlebar",
                        title: "Home page"
                    }
                },
                {
                    title: "What's News",
                    iconCls: "info",
                    items: [{
                        xtype: "tnewslanding"
                    }]
                }
            ]
        }
    });
    The tnewslanding looks like it:

    Code:
    Ext.define("tnews.view.Landing", {
        extend: "Ext.navigation.View",
        alias: "widget.tnewslanding",
        requires:["Ext.dataview.List", "Ext.data.Store"],
        config: {
            navigationBar: {
                docked: "top"
            },
            items: [{
                title: "What's News",
                html: "helloworld",
            }]
        }
    });
    But I can't see "helloworld" When click "What's News" at tab.Panel tab bar.

    Do you know why and help me fix it ?

  2. #2
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    take a look in docs how to use a 'titlebar'

Thread Participants: 1

Tags for this Thread