简体   繁体   English

在ExtJS 3.4中更改Toolip的持续时间

[英]Changing the duration time of a toolip in ExtJS 3.4

I was wondering if someone could help me out. 我想知道是否有人可以帮助我。

I am creating a tooltip using the following code; 我正在使用以下代码创建工具提示;

metaData.attr = 'ext:qtip="This is my tooltip"';

This works perfect, but the tooltip doesn't stay open for very long. 这很完美,但是工具提示不会保持打开状态很长时间。

Is there anything i can add to this statement to increase the time the tooltip stays open? 我可以在此语句中添加任何内容以增加工具提示保持打开状态的时间吗?

Thanks 谢谢

You can increase time using parameter dismissDelay (ms) when register quicktip. 注册quicktip时,可以使用参数dismissDelay (ms)增加时间。

Ext.QuickTips.register({
    target: 'my-div',
    title: 'My Tooltip',
    text: 'This tooltip was added in code',
    width: 100,
    dismissDelay: 10000 // Hide after 10 seconds hover
});

Or you can simple override all quick tips in application. 或者,您可以简单地覆盖应用程序中的所有快速提示。

Ext.apply(Ext.QuickTips.getQuickTip(), {
    dismissDelay: 10000
});

You can't add extra parameter to metaData.attr = 'ext:qtip="This is my tooltip"'; 您不能向metaData.attr = 'ext:qtip="This is my tooltip"';添加额外的参数metaData.attr = 'ext:qtip="This is my tooltip"'; to change dismiss delay. 更改解雇延迟。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM