Extjs4 - simplest way to enable/disable tabs in tabpanel?

You can use the method down to get the tab.

You can use the method down to get the tab, Ext. GetCmp('thetabppanel'). Down('#itemIdForTheTab').

SetDisabled(true); check the documentation for down dev.sencha.com/deploy/ext-4.0.2a/docs/#/....

Thanks. That looks a bit simpler. I'm still suprised there isn't a simple tab accessor by index at the panel level.. – Ben Sep 14 at 12:30.

You could also use the new query features: var panel = Ext.ComponentQuery. Query('thetabpanel panelid="#itemIdForTheTab"')0; panel. SetDisabled(true); See the Ext API on ComponentQuery for more details.

You can access the items property (witch is a MixedCollection) and use the getAt() method: Ext. GetCmp('thetabpanel').items. GetAt(1).

SetDisabled(true); See documentation link edit:typos.

Yes, get/getAt, that's what I was using. Good to know I don't have to go through getTabBar() first (oddly I thought I had tried your version but couldn't make it work, seems ok now though). Thanks – Ben Sep 15 at 10:56 Still amazed that at version 4, ext doesn't have an enableTab method at the tabpanel level.. – Ben Sep 15 at 10:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send