Ag-grid: keep open tooltip for a certain predefined time

淺唱寂寞╮ 提交于 2020-07-05 15:41:20

问题


I am using Ag-grid v23.1.1

I need to show a tooltip for 1 minute.

Ag grid does not support this case But earlier in version 22 I have used next lifehack

params.api.context.beanWrappers.tooltipManager.beanInstance.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT = 0;
params.api.context.beanWrappers.tooltipManager.beanInstance.DEFAULT_HIDE_TOOLTIP_TIMEOUT = 60000;
params.api.context.beanWrappers.tooltipManager.beanInstance.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT = 3000;

But in the current version (23) tooltipManager has been removed.

And we have TooltipFeature https://github.com/ag-grid/ag-grid/blob/master/community-modules/core/typings/widgets/tooltipFeature.d.ts

In new version names has been changed to:

 DEFAULT_HIDE_TOOLTIP_TIMEOUT;
    SHOW_QUICK_TOOLTIP_DIFF;
    FADE_OUT_TOOLTIP_TIMEOUT;

The same approach is not valid

Do you know any lifehacks in the current version?

来源:https://stackoverflow.com/questions/62047444/ag-grid-keep-open-tooltip-for-a-certain-predefined-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!