Skip to content

Instantly share code, notes, and snippets.

@maximn
Created May 19, 2013 08:27
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximn/5607071 to your computer and use it in GitHub Desktop.
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)
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