View Full Version : [CLOSED] Hide Empty Tooltips Globally
edip
Nov 11, 2016, 2:52 PM
Hello,
Is there a way to hide empty tooltips globally?
fabricio.murta
Nov 11, 2016, 4:48 PM
Hello Emidio!
I don't think there's a way to simply do this quickly. But you can write a function to check the tooltips' contents and then hide them if the tooltip is empty. It really depends on how you are using the tooltips, I guess.
Something like this can help traversing thru all tooltips on your page:
for (var comphand in Ext.ComponentManager.all) {
var comp = Ext.ComponentManager.all[comphand];
if (comp.xtype == 'tooltip') {
console.log('id: ' + comp.id);
};
}
Hope this helps!
edip
Nov 11, 2016, 5:32 PM
Thanks Fabricio
Powered by vBulletin® Version 4.2.3 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.