You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/05/27 05:05:20 UTC

[GitHub] [incubator-echarts] yzhang921 opened a new issue #10551: 绑定事件能够给定一个明确id

yzhang921 opened a new issue #10551: 绑定事件能够给定一个明确id
URL: https://github.com/apache/incubator-echarts/issues/10551
 
 
   ### What problem does this feature solve?
   目前echartsInstance.off, 事件解绑方法,两种格式一种是全部类型的事件都解绑,另外一种传递function,文档上说有function传递的情况下能够只解绑传递的function,但是测试了一下没有效果;不知道内部是通过什么机制追踪eventHanlder的,觉得如果能够让用户绑定事件的时候给定一个明确的id,这样在绑定多个不同的事件,如click、click alt,click ctrl多个不同的事件,能够精确解绑。
   
   ### What does the proposed API look like?
   echartsInstance.on('click', id, function() {})
   echartsInstance.off('click', id)
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org