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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:58:59+00:00 2026-06-13T21:58:59+00:00

In my application, I’m using a tab panel with 5 items in it. Each

  • 0

In my application, I’m using a tab panel with 5 items in it. Each item holds around 6 panels added in card layout. When I’m at the last panel inside a tab item, I need to get back to the initial panel by clicking on the bottom tab panel (somewhat similar to a normal tab view controller in iOS). I have came across some solutions I found here, but it seems to work only when I switch between the tabs. In fact I want to listen to the click event on the same tab icon. How can I do this?

  • 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-13T21:59:01+00:00Added an answer on June 13, 2026 at 9:59 pm

    I have worked on your problem. I think this is exactly what you want. Hope this helps. If not so, please leave a comment.

    1). View (MyTabPanel1.js)

        Ext.define('MyApp.view.MyTabPanel1', {
        extend: 'Ext.tab.Panel',
        config: {
    
                scrollable: 'vertical',
                 items:
                [
                    {
                       xtype: 'panel',
                       id:'cardpanel1',
                       title: 'Tab1',              
                       layout: 'card',
                            items: [
                                {  
                                    html: "First Item",
                                    items:
                                    [
                                    {
                                        xtype: 'button',
                                        text: 'Forward',
                                        handler: function() {
                                        Ext.getCmp('cardpanel1').setActiveItem(1);
                                        console.log('Going to Second Item');
                                        }
                                    }
                                    ]
                                },
                                {
                                    html: "Second Item",
                                    items:
                                    [
                                    {
                                        xtype: 'button',
                                        ui: 'confirm',
                                        text: 'Go back',
                                        handler: function() {
                                        Ext.getCmp('cardpanel1').setActiveItem(0);
                                        console.log('Going to First Item');
                                        }
                                    }
                                    ]
                                }
    
                            ]               
    
                    },
    
                    {
                        xtype: 'panel',
                        title: 'Tab2',
                        scrollable: true,
                        items: [
                            {
                                xtype: 'button',
                                margin: 10,
                                ui: 'action',
                                text: 'Tab2'
                            }
    
                        ]
                    },
                    {
                        xtype: 'panel',
                        title: 'Tab3',
                        scrollable: true,
                        items: [
                            {
                                xtype: 'button',
                                margin: 10,
                                ui: 'action',
                                text: 'Tab3'
                            }
                        ]
                    }
    
                ]
            }
    
        });
    

    2). Controller (MainController.js)

        Ext.define('MyApp.controller.MainController', {
            extend: 'Ext.app.Controller',
            config: {
                control: {
    
                    "tabpanel #ext-tab-1":{  //ext-tab-1 is the id for the 1st tab generated by Sencha
                       tap: 'ontap'
                    }            
                }
            },
    
            ontap: function (){
            console.log('inside controller');
            Ext.getCmp('cardpanel1').setActiveItem(0);
            }
    
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Application loader supports the creation of inApp-Purchase items via an import template. I'd like
Application db connection in web service. i haveto connect the db using that web
Application was built using MS interop, to export .xls to infoPath and vice versa.
Application is sending email by using MFMailComposeViewController , everything works just fine. However after
Application configuration: Web application using java first method of creating JAX-WS 2.0 Web Services
application |-Payment | | +--Item | | +---Footer.php | +--Manager.php |-Boostrap.php In application/Boostrap.php I
Application, have a TextBlock and two Buttons, the text is displayed TextBlock by clicking
Application: WPF Application consisting of a textbox on top and a listbox below Users
Application : HTA (therefore IE) This is an application that uses SendKeys to populate
Application is written in delphi 2010 and the underlying dll is a C++ dll.

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.