I want to add tooltip when Tab panel property set to
closable:true
Here is my code
===========================
//Override the Panel gettool() method
Ext.override(Ext.Panel, {
// Returns tool object with specified id
getTool: function(id) {
if (Ext.isArray(this.tools)) {
for (var i = 0; i < this.tools.length; i++) {
if (this.tools[i].id == id) {
return this.tools[i];
}
}
} else if (Ext.isObject(this.tools)) {
return this.tools[id];
}
}
});
==============================================
//Create a tab Panel
TabPanel = Ext.extend(Ext.Panel, {
initComponent: function() {
TabPanel.superclass.initComponent.call(this);
},
initTools: function(){
TabPanel.superclass.initTools.call(this);
// Set qtip for the close tool that was just added
this.getTool('close').set({qtip:'Close'});
}
});
Ext.reg('TabPanel', TabPanel);
================
Instantiate TabPanel
var addNewTab = function(oUri, oParams, oTitle, oTabID) {
var oPanel = Ext.getCmp('maintab');
var tabItem;