PDA

View Full Version : TabPanel Tab switch event



gall
7 Jul 2011, 10:21 PM
Hi,

Please help me, how can i capture the event, when i switch between tabs?

Thanks,

gall

skirtle
10 Jul 2011, 2:09 PM
The TabPanel will fire beforetabchange and tabchange events. The panel's themselves will fire deactivate and activate events.

To specify listeners either use the on() method or supply a listeners config object.

See the API docs for more on all of these things.

gall
15 Jul 2011, 10:49 PM
The TabPanel will fire beforetabchange and tabchange events. The panel's themselves will fire deactivate and activate events.

To specify listeners either use the on() method or supply a listeners config object.

See the API docs for more on all of these things.

Thanks, it's works!

One more question:

When I make a tabpanel, I can setting the active tab (eg. activeTab = 0)
How can I get the selected (active) tab index?

skirtle
16 Jul 2011, 11:22 PM
How can I get the selected (active) tab index?


tabPanel.items.indexOf(tabPanel.getActiveTab())

gall
18 Jul 2011, 9:38 PM
tabPanel.items.indexOf(tabPanel.getActiveTab())


Very, very very thank you!

gall