Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
extjs提示集可关闭_Extjs_Tooltip_Extjs4.2 - Fatal编程技术网

extjs提示集可关闭

extjs提示集可关闭,extjs,tooltip,extjs4.2,Extjs,Tooltip,Extjs4.2,我创建了Ext.tip.tip的一个实例,所以当我单击某个点时,会出现一个提示,我正在设置一个可关闭的配置。但当我点击另一个字段提示时,是否没有设置新的可关闭值? 如何设置此值?以下是代码的一部分: var customTip = new Ext.tip.Tip({ minWidth: 120, listeners: { beforehide : function(tip) { if (tip.body != null) {

我创建了Ext.tip.tip的一个实例,所以当我单击某个点时,会出现一个提示,我正在设置一个可关闭的配置。但当我点击另一个字段提示时,是否没有设置新的可关闭值? 如何设置此值?以下是代码的一部分:

var customTip = new Ext.tip.Tip({
    minWidth: 120,
    listeners: {
        beforehide : function(tip) {
          if (tip.body != null) {
             tip.body.un('mouseenter', window.tipMouseEnter, window);
          }
        }
    }
});
var customTipShowTask = new Ext.util.DelayedTask({});
var currentWindow = window;

function showCustomTip(event, html, closable, delayed) {
    if (!(event instanceof Ext.EventObjectImpl)) {
        event = new Ext.EventObjectImpl(event);
    }
    if (delayed == null || delayed) {
        customTipShowTask.delay(500, proceedToShowCustomTip, window, [event, html, closable, delayed]);
        //currentWindow.customTip.update(html);
    } else {
        proceedToShowCustomTip(event, html, closable, delayed);
    }
}

function proceedToShowCustomTip(event, html, closable, delayed) {
    customTipShowTask.cancel();
    currentWindow.customTip.hide();
    currentWindow.customTip.update('');
    if (closable != null) { customTip.closable = closable;
        currentWindow.customTip.closable = closable;
    }
    var xy = getTipXY(event);
    currentWindow.customTip.update(html);
    currentWindow.customTip.showAt(xy);

    if (delayed != null && delayed) {
        currentWindow.customTip.body.on('mouseenter', window.tipMouseEnter, window);
    }
}

如何更改可关闭性?

请问您何时在代码中调用“showcusttip”方法。在某些地方,调用:showcusttip((evt?evt:event)、html、ns:ns})、false、true);另一个:showcusttip((evt?evt:event)、html、ns:ns})、true、true;