code: function (mode) {
      this._togglingInfoWindow = true;
      this.options.tooltipMode = mode;
      this.$tipInfoWindow.html('');
      this.toolbar.$tip.html('');
      this.$tipFollow.html('').css({
        display: 'none'
      });
      this.toolbar.$tip.css('display', mode === 0 ? '' : 'none');
      this.setToolTip(-1, -1);
      if (this.options.tooltipMode === 1) {
        this.$tipInfoWindow.dialog('open');
      } else {
        this.$tipInfoWindow.dialog('close');
      }
      this._togglingInfoWindow = false;
    }
docs: Set where the tooltip is shown
  @param mode 0 is formula bar, 1 is dialog, -1 is no tooltip