PDA

View Full Version : [CLOSED] [GWT 2.0m1] Button.setIconStyle has no effect



xalvaro
21 Apr 2009, 4:29 AM
It seems that there is a bug corresponding to the button iconStyle in gxt2.0

Example:
css :

.toDashBoard {width: 16px; height: 16px; background-image: url(icons/toDashBoard16.png)}

code :

Button exportToDashBoardTool = new Button();
exportToDashBoardTool.setIconStyle("toDashBoard");
exportToDashBoardTool.setMenu(menu);
MenuItem menuItem = new MenuItem("New");
menuItem.setIconStyle("toDashBoard");
menu.add(menuItem);

The icon is shown on the menuItem but not on the button.

Thanks for your attention

sven
21 Apr 2009, 4:36 AM
Please take a look at the examles how to set an icon style. CLOSED

xalvaro
21 Apr 2009, 5:12 AM
Yes,
I forgot
!important in the css

Thanks
Sorry for the inconvenience.