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 9120847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:43:07+00:00 2026-06-17T05:43:07+00:00

I cannot change the tabbar titles in a tab Panel. Edit: I’m working on

  • 0

I cannot change the tabbar titles in a tab Panel.

Edit: I’m working on a test app witch consists in a main tab panel with other three views, similar to the “getting started video” of the sencha-touch documentation.

Now, for localization purposes, I need to change dinamically the labels under the icons of the tab bar, representing the three links to the panels.

In the code below there is my attempt to change the label of the first button by changing the title of the related view, as the label display “Home”, that is the title of the view.
I want to do that on the “activate” event of the view.
The result of this code is that if I log the title of the home view, it is changed but the tab bar button label remains the same.

I think that I miss something like “refreshing” the button, but I cannot find anything on this subject on the documentation.
I hope this edit explains better my question.

Here is the code:

Ext.define('lvzMobile.view.Main', {
extend: 'Ext.tab.Panel',
requires: ['Ext.TitleBar'],
xtype: 'main',

config: {
    tabBarPosition: "bottom",

    items: [
        {
            xtype: 'homePanel',
            id: 'home',
        },
        {
            xtype: 'catalogue',
            id: 'catalogue'
        },
        {
            xtype: 'infoPanel',
            id: 'info'
        }
    ],

    listeners: {
        activate: function() {
            console.log("activate");
            this.getAt(0).setTitle("emoh");
            //the title changes but nothing happens in the tabbar... 
        }
    }
}
});

Please, can you help me? I can’t understand what’s wrong.

  • 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-06-17T05:43:10+00:00Added an answer on June 17, 2026 at 5:43 am

    The line that says:

    this.getAt(0).setTitle('emoh')
    

    …will change the title of your panel, but not the button itself. To change the button text, use:

    this.getTabBar().getAt(0).setTitle('emoh')
    

    Here’s a fiddle with your code to demonstrate.

    While there, here’s a tip: use alias: 'widget.main' instead of xtype: 'main'. xtype is for configs, alias is for defining the alias which in turn can be used later with xtype (use prefix widget. to be used as a widget, store. to be used as a store, etc.).

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

Sidebar

Related Questions

/*you cannot change anything from here below*/ main() { exit(0); } /*you cannot change
I am working with a database that I didn't create so cannot change it
I know that one cannot change the size of an app widget. But what
I am working with a SharePoint site and I cannot change the HTML. What
I have some code (which I cannot change) that I need to get working
I am working with a database schema that I cannot change - and I
I'm writing a unit test and therefore, cannot change the code within the file
I cannot change the css theme of my Drupal View. This is a screenshots
In this commit there is a change I cannot explain deferred.done.apply( deferred, arguments ).fail.apply(
Cannot figure out, where to change EOF in PyCharm. My scripts start with :

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.