Skip to content

Instantly share code, notes, and snippets.

@maximn
Created May 19, 2013 08:27

Revisions

  1. maximn created this gist May 19, 2013.
    19 changes: 19 additions & 0 deletions extjs-tooltip-hideEmpty.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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;
    }
    }
    }
    },