Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6136135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:33:57+00:00 2026-05-23T17:33:57+00:00

Hey guys I’m starting to work with Sencha Touch and it feels like the

  • 0

Hey guys I’m starting to work with Sencha Touch and it feels like the tutorials I’ve read/documentation is helpful. I’m trying to understand: the difference between tabbar and tabpanel and when to use them

For example I have a index panel with list items, once someone clicks it, it goes to a page with a tabbar on the bottom. am I suppose to use a new panel with a tabbar or just a tabpanel?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:33:58+00:00Added an answer on May 23, 2026 at 5:33 pm

    I was working on something similar, check out the code below. As for the difference between TabPanel and TabBar it seems that TabBar is just a component of TabPanel used for displaying and manipulating tab buttons.

    The list part of the below code has been taken form sencha touch API List

    Ext.setup({
    onReady: function() {
        Ext.regModel('Contact', {
            fields: ['firstName', 'lastName']
        });
    
        var store = new Ext.data.JsonStore({
            model  : 'Contact',
            sorters: 'lastName',
    
            getGroupString : function(record) {
                return record.get('lastName')[0];
            },
    
            data: [
                {firstName: 'Tommy',   lastName: 'Maintz'},
                {firstName: 'Rob',     lastName: 'Dougan'},
                {firstName: 'Ed',      lastName: 'Spencer'}
            ]
        });
    
        var tabPanel = new Ext.TabPanel({
    
            tabBar:{
                dock: 'bottom', // will put the menu on the bottom of the screen
                layout:{
                    pack: 'center' // this will center the menu
                }
            },
            items:[
                {
                    title: 'tab 1',
                    html: 'TAB 1',
                    iconCls: "home"
                },
                {
                    title: 'tab 2',
                    html: 'TAB 2',
                    iconCls: "bookmarks",
                }
            ]
    
        });
        var list = new Ext.List({
            itemTpl : '{firstName} {lastName}',
            grouped : true,
            indexBar: true,
    
            store: store,
    
            listeners: {
                itemtap:function (subList, subIdx, el, e) {
                    console.log(subList, subIdx, el, e);
    
                    var store = subList.getStore(),
                            record = store.getAt(subIdx);
    
                    if (record) {
                        mainPanel.setActiveItem(tabPanel, 'slide');
                    }
                }}
        });
    
        // Main panel viewport
        var mainPanel = new Ext.Panel({
            fullscreen: true,
            layout: 'card',
    
            items:[list]
        });
        mainPanel.show();
    }
    

    });

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys I wanted to create a JScrollPane but it won't work... and I
Hey guys I'm trying to add the string 'url( ) ' around my a
Hey guys, I'm trying to get my head around LINQ and FP, so forgive
Hey guys I'm following the rails tutorial found here http://net.tutsplus.com/tutorials/ruby/the-intro-to-rails-screencast-i-wish-i-had/ and I've gotten to
Hey guys I can't seem to get the syntax here right, I'm just trying
Hey guys I'm getting three things right now that I'm trying to take care
Hey guys. Working on Mac OSX 10.6, My problem is that I would like
Hey guys, I'm using smarty and php I am trying to make this function
Hey guys im trying to get a simple button masher up, What i want
Hey guys was hoping you can help me out. been at this for like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.