Felix
Felix

Reputation: 140

smartgwt StaticTextItem set css style

I'm trying to set an specific CSS just for a certain item on my form. I would like to make it bold and in a different color. I used the following statement. Why is it not working?

    myStaticTextItem.setCellStyle("color:#FF0000; font-weight: bold;");

Upvotes: 1

Views: 1234

Answers (1)

dafilipaj
dafilipaj

Reputation: 1074

You can use setTextBoxStyle to assign CSS class to your input box of that element.

There are additional methods for assigning CSS classes for special parts of element like title, hover, hint and picker icon. More here.

Upvotes: 1

Related Questions