balkon_smoke
balkon_smoke

Reputation: 1206

ExtJS 4: Deactivate all tabs in tab panel

I would like to deactivate tabs in the tabbar, but I didn't find any method or config property in Sencha docs http://docs.sencha.com/ext-js/4-0/#!/api/Ext.tab.Panel.

  1. When panel is created, first tab is automatically selected (I would like to prevent this)
  2. I listen to beforetabchange event and prevent it if some data was modified.

What am I waiting for:

  1. When tab panel is loaded, any tab shouldn't be activated (choosed)
  2. When user starts click on these tabs I should catch that event and handle it by beforetabchange handler

Thanks a lot for a help.

Upvotes: 0

Views: 1725

Answers (1)

sha
sha

Reputation: 17860

One of tabs will be selected. You can control which one by using activeItem, activeTab properties. Are you trying to create a tab panel without selected item at all?

Upvotes: 0

Related Questions