title: How can I add tools in a tab of an Extjs TabPanel?
body: <p>How can I add the buttons (tools) in the header of each tab, in a TabControl?</p>
  
  <p>I just could add tools in the TabPanel, but I want to add in the tabs.</p>
  
  <p><a href="http://i.stack.imgur.com/ek9sX.jpg">Image</a></p>
  
  <p>I also tried this, but no success:</p>
  
  <pre><code>      var lTabPanel = Ext.create('Ext.tab.Panel', {
        width: 400,
        height: 400,
        renderTo: document.body,
        items: [{
            title: 'Home',
            html: 'Home',
            itemId: 'home'
        }, {
            title: 'Users',
            html: 'Users',
            itemId: 'users',
            hidden: true
        }, {
            title      : 'Tickets',
            html       : 'Tickets',
            itemId     : 'tickets',
            tools:[{
              type:'gear',
              tooltip: 'Options',
              handler: function(event, toolEl, panel){
                  // Some code.
              }
            }]
  
        }]
    });
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>Thanks!</p>