PDA

View Full Version : How to show tooltip on disabled button?



cwtuan
27 Jun 2012, 8:03 AM
Showing tooltip (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.tip.ToolTip)on a button is easy.
But it doesn't work when the button is disabled.
Does everyone know how to make it possible?

scottmartin
27 Jun 2012, 10:06 AM
This does not work for you?



Ext.QuickTips.init();

Ext.create('Ext.Button', {
text: 'Click me',
tooltip: 'My Tip',
disabled: true,
renderTo: Ext.getBody(),
handler: function() {
alert('You clicked the button!');
}
});


Scott.

cwtuan
27 Jun 2012, 7:39 PM
No, it does not work. The tooltip will not show when button is disabled.
It work fine when button is enabled.
I have tested it on FF13 and chrome 19

scottmartin
27 Jun 2012, 8:00 PM
What version of ExtJS are you using?

Shown using 4.1, 4.1.1:
36610

Scott.

cwtuan
28 Jun 2012, 12:01 AM
I use ExtJS 4.1.

scottmartin
28 Jun 2012, 6:01 AM
There are several options since I am unable to reproduce this on my end.

-Download 4.1.1 RC2 to see if there is any change
-Upgrade your browser versions to the latest
-Provide us with the OS you are using
-Have you tried it on another system to out of curiosity?

Scott.

teaganrichat
24 Oct 2012, 6:30 AM
Seems to be an issue with FF (16). Both Chrome (22) and oddly enough IE 9 seem fine.