1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    15
    Vote Rating
    0
    salvin18 is on a distinguished road

      0  

    Default How do i iterate through the Tabitems in a TabPanel ?

    How do i iterate through the Tabitems in a TabPanel ?


    Is there any way to iterate through the TabItems in a TabPanel ?

    I have a very basic requirement to set the default selected tab item in a panel.

    while I know this is possible via:
    setSelection(TabItem item)

    I would like to know if its possible if I do not have the TabItem's reference with me and all I know is its index.

    or a requirement like: select the first tab item in the tabpanel, whatever it is ...

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    TabPanel has a getItem method, which you can pass into the index.

Similar Threads

  1. How to add TabItems to a TabPanel from an other class?
    By msauter in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 3 Sep 2009, 7:23 AM
  2. Get TabItems In TabPanel
    By karacutey in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 26 Nov 2008, 1:35 PM
  3. tabpanel menu with close and select other tabitems
    By mdissel in forum Ext 2.x: User Extensions and Plugins
    Replies: 6
    Last Post: 21 Oct 2008, 2:11 AM
  4. Insert TabItem between two other TabItems..
    By ko0kiE in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 19 Oct 2007, 7:08 AM

Thread Participants: 1

Tags for this Thread