Jump to content

Changing UniTreeMenu icon color at runtime


emin

Recommended Posts

I want to change the icon colors when UniTreemenu is in micro mode, and use the old color again when out of micro mode. I tried the below codes but both didn't work

 

Quote

UniTreeMenu1.JSInterface.JSCode(#1'.getEl().select(".x-treelist-item-icon").setStyle("Color", "#43A047");');
UniTreeMenu1.JSInterface.JSCode(#1'.getEl().select(".x-treelist-item-icon").each(function(el){el.setStyle("Color", "#43A047")});');
 

 

Link to comment
Share on other sites

Hello,

Which build are you using?

1 hour ago, emin said:

UniTreeMenu1.JSInterface.JSCode(#1'.getEl().select(".x-treelist-item-icon").setStyle("Color", "#43A047");');
UniTreeMenu1.JSInterface.JSCode(#1'.getEl().select(".x-treelist-item-icon").each(function(el){el.setStyle("Color", "#43A047")});');

Where are you using these codes?

 

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...