Ext GWT change ContentPanel background color on mouseover -
In my page I have a GCC content panel with a white background. However, when the user mews at the header of the content page, I would like to change the background color.
I tried to get it by using the protected addStyleOnOver method of the GXT component, but there is no effect in it. Do I need to use some more methods (I'm already drowning ONMOUSEOVER and ONMOUSEOUT events), or is there a better way to change the background?
You can do it below your work
ContentPanel contentPanel = New ContentPanel (); ContentPanel.setStyleName ("background");
and enter the code in your CSS
. Background: Hover .x-panel-body {background-color: red! Important;}
Comments
Post a Comment