风吹小机机 Posted November 24, 2021 Share Posted November 24, 2021 Such as title I can't get the jsid of the next layer of unitreenu Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 24, 2021 Share Posted November 24, 2021 Hello, This post may help you: Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted November 25, 2021 Author Share Posted November 25, 2021 14 hours ago, Sherzod said: Hello, This post may help you: This is to change CSS, which is a little inflexible I want to use this way UniSession.AddJS('Ext.get("' + UgTreeMenu01.JSId + '").setStyle({"background-color": "rgba(0,0,0,0)"})'); But I can't get another level of jsid As shown in the figure Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted November 25, 2021 Author Share Posted November 25, 2021 Thank you very much for your answer My problem has been solved, The solution is to share with you: UniSession.AddJS(' if(!!Ext.get("' + MenuTree.JSId + '").el.dom.children[0].id){' +' var kid = Ext.get("' + MenuTree.JSId + '").el.dom.children[0].id;' +' Ext.get(kid).setStyle({"background-color":"rgba(200,0,0,1)"});' +' }'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.