SmartGWT Version : 2.2
Browser Version : Chrome 5.0
TLDR : How is one to change only the text color of a Button?
I am evaluating SmartGWT for a medium sized project and have
encountered a simple issue. I would be very grateful for any
help in advancing past this issue. I have searched the forums but
have not found any post or mention of this issue specifically.
I have included a .CSS file into the HTML containing this class :
The textcolor of the title of a button appears to be read-only.
I took the sample code from the showcase for a button :
I attempt to apply the CSS class to the button in this manner, but it has no effect.
Then I attempt this, but it has no effect.
Then I attempt this, but it has no effect.
Then I attempt this which does affect the Button element, but removes the theme/skin - which is the default theme/skin that ships with SmartGwt.
How is one to change only the text color of a Button?
Much thanks,
- Matthew
Browser Version : Chrome 5.0
TLDR : How is one to change only the text color of a Button?
I am evaluating SmartGWT for a medium sized project and have
encountered a simple issue. I would be very grateful for any
help in advancing past this issue. I have searched the forums but
have not found any post or mention of this issue specifically.
I have included a .CSS file into the HTML containing this class :
Code:
.helloTitle{ color: red; }
I took the sample code from the showcase for a button :
Code:
final Button cssButton = new Button("CSS Button"); cssButton.setShowRollOver(true); cssButton.setShowDisabled(true); cssButton.setShowFocused(false); cssButton.setShowDown(true);
Code:
cssButton.setTitleStyle("helloTitle");
Code:
cssButton.setStyleName("helloTitle");
Code:
cssButton.addStyleName("helloTitle");
Code:
cssButton.setBaseStyle("helloTitle");
Much thanks,
- Matthew
Comment