smartgwt button cannot override skin_styles.css

后端 未结 1 937
离开以前
离开以前 2021-01-27 17:48

I want to add red background and white color for titleStyle for ibutton in smartgwt. I cannot override skin_styles.css. How to override skin_styles for button in smartgwt? Simpl

1条回答
  •  攒了一身酷
    2021-01-27 18:16

    It seems you have issues with skinning and style, If you want to add a style to a widget(your previous post) you can use some sort of code:

        String newStyle;
        String actualStyle= o.getStyleName();
        if(actualStyle!= null){
             newStyle= actualStyle+ " " + styleNameYouWant;
        }else{
            newStyle= styleNameYouWant;
        }
        o.setStyleName(newStyle);       
    

    0 讨论(0)
提交回复
热议问题