【问题标题】:Cytoscape js qtip on right click右键单击 Cytoscape js qtip
【发布时间】:2021-10-25 17:08:22
【问题描述】:

我正在尝试在节点的右键单击事件上显示 qtip。 我已经在鼠标悬停或单击事件上做到了,并且它们起作用了。但是我不能让它在右键单击时工作。

position: {
    my: 'top left',
    at: 'bottom right',
    adjust: { method: 'none' }
},
style: {
    classes: 'qtip-rounded'
},
show: {
    event: 'mouseover'
}

有什么猜测吗? 我也检查了这个:http://qtip2.com/guides#events.rightclick 它对我不起作用。

【问题讨论】:

    标签: qtip qtip2 cytoscape.js


    【解决方案1】:

    您不能像 qtip 文档建议的那样使用 DOM 事件,因为图形元素不是 HTMLElements。您应该使用 Cytoscape 事件。

    cxttap : http://js.cytoscape.org/#events/user-input-device-events

    【讨论】:

      猜你喜欢
      • 2016-08-05
      • 2012-11-06
      • 1970-01-01
      • 2011-01-11
      • 2020-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多