Created
May 19, 2013 08:27
-
-
Save maximn/5607071 to your computer and use it in GitHub Desktop.
A patch for ExtJS 4.2 Ext.tip.ToolTip It hides empty tooltips (the default behavior is to show empty border)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tips: { | |
// ... | |
renderer: function (storeItem, item) { | |
if (/* want to hide condition ... */) { | |
this.update(); | |
return; | |
} | |
// ... the code for regualr tips we want to show | |
}, | |
listeners: | |
{ | |
beforeshow: { | |
fn: function (tip) { | |
// Patch : Show the tip only if has content | |
return tip.layout.owner.html != undefined; | |
} | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment