PDA

View Full Version : Tool tip as 'close' on cross button in a window



awanish
10 Sep 2010, 5:25 AM
Please give me some idea to put a Tool tip as 'close' on cross button in a window.

Condor
10 Sep 2010, 6:01 AM
win.on('render', function(c){
Ext.QuickTips.register({
target: c.tools['close'],
text: 'Close'
});
});

Animal
10 Sep 2010, 6:16 AM
Use closable: false, and put your own tool there using the tools config.

Condor
10 Sep 2010, 6:19 AM
In that case you will also need to attach your own Esc key handler.

awanish
10 Sep 2010, 6:21 AM
Thanks a lot,
it is working fine.

Animal
10 Sep 2010, 6:24 AM
Yes, your solution is better. The standard tools should come with tooltips, overridable in locale files.