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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:12:26+00:00 2026-06-18T02:12:26+00:00

var tabs = Ext.widget(‘tabpanel’, { renderTo: ‘tabs’, resizeTabs: true, enableTabScroll: true, width: 600, height:

  • 0
 var tabs = Ext.widget('tabpanel', {
        renderTo: 'tabs',
        resizeTabs: true,
        enableTabScroll: true,
        width: 600,
        height: 250,
        defaults: {
            autoScroll: true,
            bodyPadding: 10
        },
        items: [{
            title: 'Tab 1003',
            iconCls: 'tabs',
            //ref:'http://www.yahoo.com',
            //hrefTarget:'_self',
            html: '<div style="width:100%; height:100%; background-color:#cccccc;"><iframe src="http://www.w3schools.com" frameborder=0  style="width:100%; height:100%;"></iframe></div>',
            closable: true,
            focusOnToFront  : true
        }],.........................

how to focus on the first tab, when having a few tabs?
i use focusOnToFront,but it’s seen doesn’t working.

  • 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-18T02:12:27+00:00Added an answer on June 18, 2026 at 2:12 am

    Seeing that you already have your tabpanel defined in the variable tabs, if you want to make your first tab visible the easiest way would be this:

    tabs.setActiveTab(0);
    

    As covered here in the docs.

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

Sidebar

Related Questions

I have the following Ext.TabPanel: var modules_info_panel = new Ext.TabPanel({ activeTab: 0, defaults:{autoScroll:true}, //layout:
var tabPanel = Ext.getCmp('tabPanel'); for(var i=1; i<tabPanel.items.length; i++) { tabPanel.items.removeAt(i); i--; } tabPanel.doLayout(); I'm
EDIT : Per Slaks $j('#banner-content img').each(function() { var link = $j('#page-tabs li a.' +
I'm runnning ExtJS 4.1 and have a tab opener defined below: var tabs =
I am dynamically adding tabs to my page using the following script: var tabs
I have HTML code like so: function toggle_action(type) { var tabs = document.getElementsByName(action_tab) for(var
This is my main.js: var data = require(self).data; var window = require(window-utils).activeBrowserWindow; var tabs
I have the following simple code: var tabs = null; function addTab(id, title, data)
I have a javascript object defined as follows: var tabs = { 'nav_tweet_search':'tweet-panel', 'nav_shopping_cart':'cart-panel',
I'm trying to bind event handlers within a loop such as: var tabs =

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.