PDA

View Full Version : How to set background color for Toggle button in gxt ?



mvasanth
20 Jan 2016, 2:18 AM
Hi ,

How to set background color for the Toggle button in gxt ?
I tried to add the following code to set background color, but its displayed. The color is hides back in the ToggelButton.
event1.getElement().getStyle().setBackgroundColor("red");
event1.setStyleName(resources.css().event1(), true);

Can you please suggests solution to set the bgcolor for the ToggelButton,

Regards
Vasanth