menciusKael opened a new issue #9059: 自定义图标动态切换
URL: https://github.com/apache/incubator-echarts/issues/9059
 
 
   
![image](https://user-images.githubusercontent.com/29659731/45419701-9f71ae80-b6ba-11e8-8a5a-b0a0787040be.png)
   
   
![image](https://user-images.githubusercontent.com/29659731/45419877-16a74280-b6bb-11e8-8317-780019a8fa63.png)
   
   
   feature: {
           myTool1: {
             show: true,
             title: "往上",
             icon: "image://../img/drill_up_h.png",
             onclick: function () {
               alert("myToolHandler1");
               // option.toolbox.feature.myTool1.icon
             }
           },
           myTool2: {
             show: true,
             title: "往下",
             icon: "image://../img/drill_down.png",
             onclick: function () {
               alert("myToolHandler1");
             }
           },
          
         }
   
   怎么实现这个自定义图标动态切换,就是只有一个当前选中,选中颜色为绿色,是一张本地图片,选中一个另一个变灰色,求大神指点,谢谢
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to