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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:59:35+00:00 2026-06-16T13:59:35+00:00

I am displaying a tab panel with four tabs in my application, with the

  • 0

I am displaying a tab panel with four tabs in my application, with the first tab displaying by default.

Whenever the user selects one of the other three tabs, I need to check whether the user is already logged in or not by checking the local storage user token variable.

If I do not get a valid value from the local storage user token variable, or the user didn’t log in yet, then I have to ask the user to log in by displaying an Overlays page over the tabpanel.

I designed the overlay panel (example of overlay) such that when user selects another tab and hasn’t logged in yet, then I am showing the overlay login panel.

My problem is that when user selects another tab, the selected tab screen is enabled and that screen appears under the overlay login screen. How can I disable tab navigation so that when the user hasn’t logged in, they can’t see other tab screens and they can see only the first tab screen?

  • 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-16T13:59:36+00:00Added an answer on June 16, 2026 at 1:59 pm

    Here is a example code snippet to solve your problem:

    You can handle such things from your Controller :

    Ext.define('MyTest.controller.Home',{
        extend : 'Ext.app.Controller',  
    
        config : {
            refs : {
                tabHome     : "#mainView tab[iconCls=home]",
                tabProduct  : "#mainView tab[iconCls=products]",
    
            },
            control : {
                tabHome : {
                    tap : 'showHome'
                },
    
                tabProduct : {
                    tap : 'showProduct'
                },
    
            }
        },
    
        showHome : function () {
            if(getLoginState() == true){
                Ext.Viewport.getActiveItem().getAt(1).setActiveItem('homeView');
            }
            else{
                Ext.Viewport.getActiveItem().getAt(0).setActiveItem('dashboardView');
                showLoginOverlay();
            }
        },
    
        showProduct : function () {
            if(getLoginState() == true){
                Ext.Viewport.getActiveItem().getAt(2).setActiveItem('productView');
            }
            else{
                Ext.Viewport.getActiveItem().getAt(0).setActiveItem('dashboardView');
                showLoginOverlay();
            }
        },
    
    });
    

    Thanks.

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

Sidebar

Related Questions

I have three tabs in one screen.by default i am displaying first tab data.
After my application finished loading, i am displaying tab panel and the default first
OverView I'm having problem with Ajax Tab Container ,I have added three tabs in
I've developed a simple application with TabView. There are two tabs, each tab has
I currently have a tab layout with 2 tabs, one tab with a list
I have 3 different tabs where i am displaying data using jQGrids(each tab contain
I'm attempting to display a tabbed panel but the tabs are not displaying. This
I have an Android App that uses TabWidgets for displaying 4 Tabs. Each Tab
I have an application with TabHost with few tabs and in each tab I
Jquery tab control displaying 7 tabs. When I print the page I only want

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.