title: extjs4 - simplest way to enable/disable tabs in tabpanel?
body: <p>Is there a simple way to enable/disable tabs in a tabpanel at runtime?</p>
  
  <p>At the moment, I do:</p>
  
  <pre class="lang-js prettyprint-override"><code>Ext.getCmp('thetabpanel).getTabBar().items.get(1).setDisabled(true);
  </code></pre>
  
  <p>That seems really complicated, but I can't seem to find any obvious method at the tab panel level to do that directly.</p>
  
  <p>Thanks</p>