EXTJS: Change the color of a node -


I should be able to change the color of a node in a panel panel. I thought it would be very easy, but I have a herd to find some time.

Thank you

Of course, after 5 minutes of asking, I got the solution

It works without extracting the current square, but I just left that line because I am donkey. I do not know if later problems can arise, So it is not.

  & lt; Style & gt; .RedText is a duration {color: red; } & Lt; / Style & gt; Var currentClass = opNode.attributes.cls; OpNode.ui.removeClass (currentClass); OpNode.ui.addClass ('redText'); OpNode.attributes.cls = 'RedText';  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -