简体   繁体   中英

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.

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"'; to change dismiss delay.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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