Results 1 to 2 of 2

Thread: How do i iterate through the Tabitems in a TabPanel ?

  1. #1
    Sencha User
    Join Date
    May 2010
    Vote Rating

    Default 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
    Sencha Premium Member
    Join Date
    Sep 2007
    Vote Rating


    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts