echarts-bot[bot] commented on issue #16738:
URL: https://github.com/apache/echarts/issues/16738#issuecomment-1077355045


   @Hunlongyu It seems you are not using English, I've helped translate the 
content automatically. To make your issue understood by more people and get 
helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **BODY**
   
   ### What problem does this feature solve?
   
   Toolbox feature: The default icon color changes to blue when clicked, but 
the color of the custom icon does not change after clicking.
   (The default icons in the toolbox feature, such as: datazoom, brush, etc., 
the color turns blue after clicking, but the custom icon does not change after 
clicking)
   
   I hope that when hover or click the icon, there are attributes that can 
change the icon's color or style.
   (When you want to hover over the mouse or click on a custom icon, you can 
have attribute values to change the color or style.) )
   
   ### What does the proposed API look like?
   
   ```js
   const toolbox = {
     featrure: {
       myRecovery: {
         show: true,
         title: 'recovery'
         icon: '',
         hover: {
           icon: {
             color: '#ff0',
             size: 14
           },
           label: {...}
        },
        focus: {
          icon: {},
          label: {}
         },
         onclick () {}
       }
     }
   }
   ```
   </details>


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to