View unanswered posts | View active topics It is currently 2021-12-03 6:41



Reply to topic  [ 2 posts ] 
 能不能在我点击的时候触发显示tip 
Author Message
初级会员

Joined: 2017-10-25 14:53
Posts: 66
Post 能不能在我点击的时候触发显示tip
我的tip内容是我点击网元以后加上去的,然后能有什么方法立即显示tip的内容吗


2021-05-27 16:04
Profile
TWaver开发组
User avatar

Joined: 2021-04-29 9:17
Posts: 3
Post Re: 能不能在我点击的时候触发显示tip
默认显示tooltip为mousemove触发,想要更改为click的话,需要修改twaver.js源码
例如我使用twaver.vector.Network的话,需要在源码中ext("twaver.vector.Network")所在区域修改
将setToolTipEnabled内this._view.addEventListener、this._view.removeEventListener中的mousemove改为click


Attachments:
1622431516(1).png
1622431516(1).png [ 28.71 KiB | Viewed 940 times ]
2021-05-31 11:27
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron