[CLOSED] How to make an active tab select its corresponding menu item?

  1. #1

    [CLOSED] How to make an active tab select its corresponding menu item?

    Hi,

    I have a Panel with AccordionLayout (the setup is similar to the Example Explorer main page at https://examples1.ext.net). When I click on a left hand side menu item, it opens up a new tab or activates an existing one in the main working area. I would like to get the reverse behavior: clicking on a tab in the working area should select the corresponding menu item in the Accordion. I think this objective is relatively easy to achieve by collecting the tab client id and activating the menu item (although a nice example would be cool to have :))

    I'd like to know how to handle the situation when a tab gets closed in the working area activating some other tab as a result. What's the client side event to handle in order to select the correct accordion menu item when the next tab is activated after closing?

    Thanks,

    Vadym
    Last edited by Daniil; Feb 07, 2012 at 4:55 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use the TabPanel's TabChange event.
    http://docs.sencha.com/ext-js/3-4/#!...vent-tabchange

    As well you could use the Activate event of tabs.
    http://docs.sencha.com/ext-js/3-4/#!...event-activate

Similar Threads

  1. Replies: 2
    Last Post: Apr 02, 2012, 7:48 AM
  2. [CLOSED] Splitbutton with Menu - Make the menu expand upwards?
    By rbarr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 02, 2011, 1:18 PM
  3. [CLOSED] CycleButton active item
    By smart+ in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 01, 2011, 12:20 PM
  4. Replies: 2
    Last Post: Apr 25, 2010, 2:15 AM
  5. [CLOSED] active item bug with multiple gridpanels
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 06, 2009, 1:51 PM

Posting Permissions