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 2018/08/28 05:45:04 UTC

[GitHub] JHChan314 opened a new issue #2140: toolbox 自定义工具能不能获得echart对象?

JHChan314 opened a new issue #2140: toolbox 自定义工具能不能获得echart对象?
URL: https://github.com/apache/incubator-echarts/issues/2140
 
 
   你好,请教一点问题。由于在网上搜索不到答案,所以才来这提issue。
   
   ``` javascript
   toolbox: {
   ...
   myTool : {
                   show : true,
                   title : '自定义扩展方法',
                   icon : 'image://../asset/ico/favicon.png',
                   onclick : function (opt){
                       //这里opt是echart对象的option,能否获取echart对象呢?
                   }
   }
   ```
   
   上面是自定义一个工具,绑定`onclick`事件,`onclick`里面能得到当前的echart对象吗?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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